temp fix for Cider not responding

This commit is contained in:
booploops 2022-03-03 04:08:16 -08:00
parent 009ad55b4c
commit d9ca61a9b2

View file

@ -141,7 +141,15 @@ document.addEventListener('musickitloaded', function () {
sourceType: 24,
suppressErrorDialog: true
}).then(() => {
app.init()
function waitForApp() {
if (typeof app !== "undefined") {
app.init()
}
else {
setTimeout(waitForApp, 250);
}
}
waitForApp()
})
}
@ -165,6 +173,8 @@ document.addEventListener('musickitloaded', function () {
});
if ('serviceWorker' in navigator) {
// Use the window load event to keep the page load performant
window.addEventListener('load', () => {