Don't prefix libraries that are prefixed by '$'. #hack
This commit is contained in:
parent
3b40850195
commit
c4fa2ecddb
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue