chore: remoev setTimeout (#12009)

pull/12011/head
Dominic Gannaway 7 months ago committed by GitHub
parent 2a8632385c
commit 7272b650d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -4,11 +4,9 @@ import App from './App.svelte';
const root = document.getElementById('root')!;
const render = root.firstChild?.nextSibling ? hydrate : mount;
setTimeout(() => {
const component = render(App, {
target: document.getElementById('root')!
});
// @ts-ignore
window.unmount = () => unmount(component);
}, 2000)
const component = render(App, {
target: document.getElementById('root')!
});
// @ts-ignore
window.unmount = () => unmount(component);

Loading…
Cancel
Save