diff --git a/site/src/components/Install.svelte b/site/src/components/Install.svelte index 5198d64..a532974 100644 --- a/site/src/components/Install.svelte +++ b/site/src/components/Install.svelte @@ -15,9 +15,13 @@ let diffedScript = $state(''); onMount(() => { - window.addEventListener("load", () => { + if(document.readyState === "complete") { GLInstallMissing = (window as any).GLInstall === undefined; - }); + } else { + window.addEventListener("load", () => { + GLInstallMissing = (window as any).GLInstall === undefined; + }); + } }); async function fetchScript() {