Don't prefix libraries that are prefixed by '$'. #hack
This commit is contained in:
parent
3b40850195
commit
c4fa2ecddb
|
@ -42,8 +42,12 @@ var LIBRARY_WHITELIST = [];
|
|||
var LIBRARY_PREFIX = 'ep_etherpad-lite/static/js';
|
||||
exports.tar = {};
|
||||
function prefixLocalLibraryPath(path) {
|
||||
if (path.charAt(0) == '$') {
|
||||
return path.slice(1);
|
||||
} else {
|
||||
return LIBRARY_PREFIX + '/' + path;
|
||||
}
|
||||
}
|
||||
|
||||
for (var key in tar) {
|
||||
exports.tar[prefixLocalLibraryPath(key)] =
|
||||
|
|
Loading…
Reference in New Issue