Don't prefix libraries that are prefixed by '$'. #hack

This commit is contained in:
Chad Weider 2012-05-11 18:17:00 -07:00
parent 3b40850195
commit c4fa2ecddb
1 changed files with 5 additions and 1 deletions

View File

@ -42,7 +42,11 @@ var LIBRARY_WHITELIST = [];
var LIBRARY_PREFIX = 'ep_etherpad-lite/static/js'; var LIBRARY_PREFIX = 'ep_etherpad-lite/static/js';
exports.tar = {}; exports.tar = {};
function prefixLocalLibraryPath(path) { function prefixLocalLibraryPath(path) {
return LIBRARY_PREFIX + '/' + path; if (path.charAt(0) == '$') {
return path.slice(1);
} else {
return LIBRARY_PREFIX + '/' + path;
}
} }
for (var key in tar) { for (var key in tar) {