mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 10:46:14 +01:00
if require call on page script fails, remove from scripts array
This commit is contained in:
@@ -276,6 +276,8 @@ $(document).ready(function () {
|
|||||||
require([script], function (script) {
|
require([script], function (script) {
|
||||||
if (script && script.init) {
|
if (script && script.init) {
|
||||||
data.scripts[idx] = script.init;
|
data.scripts[idx] = script.init;
|
||||||
|
} else {
|
||||||
|
data.scripts[idx] = null;
|
||||||
}
|
}
|
||||||
--outstanding;
|
--outstanding;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user