Avoid infinite loop if loading JS file fails

This commit is contained in:
nathangray
2021-06-17 14:17:58 -06:00
parent 69aaa14037
commit 5a209a00f0
2 changed files with 4 additions and 1 deletions

View File

@ -164,6 +164,7 @@ egw.extend('files', egw.MODULE_WND_LOCAL, function(_app, _wnd)
promise = import(_prefix ? _prefix+src : src)
.catch((err) => {
console.error(src+": "+err.message);
return Promise.reject(err.message);
});
}
else
@ -172,6 +173,7 @@ egw.extend('files', egw.MODULE_WND_LOCAL, function(_app, _wnd)
import(_prefix ? _prefix+src : src)
.catch((err) => {
console.error(src+": "+err.message);
return Promise.reject(err.message);
})
}));
}