Small change for #314 Something changed in Chrome 100?

This commit is contained in:
the-djmaze 2022-04-05 10:40:30 +02:00
parent 48974d1b5a
commit ff35397292

View file

@ -51,7 +51,7 @@ window.rl = {
loadScript(url)
.then(() => loadScript(url.replace('/libs.', `/${admin?'admin':'app'}.`)))
.then(() => appData.PluginsLink ? loadScript(appData.PluginsLink) : Promise.resolve())
.then(() => ('loading' !== doc.readyState) ? cb() : doc.addEventListener('DOMContentLoaded', cb))
.then(() => ('complete' == doc.readyState) ? cb() : doc.addEventListener('DOMContentLoaded', cb))
.catch(e => {
showError(e.message);
throw e;