FIX: Skip the window load event for now (#17231)

This commit is contained in:
Joe 2022-06-24 19:23:33 +08:00 committed by GitHub
parent 529c5e343d
commit f73796b258
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,14 +82,8 @@ const Discourse = Application.extend({
}); });
}); });
window.addEventListener( // The app booted. Remove the splash screen
"load", document.querySelector("#d-splash")?.remove();
() => {
// The app booted. Remove the splash screen
document.querySelector("#d-splash")?.remove();
},
{ once: true }
);
}, },
_registerPluginCode(version, code) { _registerPluginCode(version, code) {