mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
fix require for paths ending with .js in the worker
This commit is contained in:
parent
60680beae5
commit
1da498156a
3
node_modules/ace/lib/ace/worker/worker.js
generated
vendored
3
node_modules/ace/lib/ace/worker/worker.js
generated
vendored
@ -71,7 +71,8 @@ window.require = function(parentId, id) {
|
||||
if (!window.require.tlns)
|
||||
return console.log("unable to load " + id);
|
||||
chunks[0] = window.require.tlns[chunks[0]] || chunks[0];
|
||||
var path = chunks.join("/") + ".js";
|
||||
var path = chunks.join("/");
|
||||
if (path.slice(-3) != ".js") path += ".js";
|
||||
|
||||
window.require.id = id;
|
||||
window.require.modules[id] = {}; // prevent infinite loop on broken modules
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user