mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 02:36:16 +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) {
|
||||
if (script && script.init) {
|
||||
data.scripts[idx] = script.init;
|
||||
} else {
|
||||
data.scripts[idx] = null;
|
||||
}
|
||||
--outstanding;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user