chore: remoev setTimeout (#12009)

pull/12011/head
Dominic Gannaway 1 year 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 root = document.getElementById('root')!;
const render = root.firstChild?.nextSibling ? hydrate : mount; const render = root.firstChild?.nextSibling ? hydrate : mount;
setTimeout(() => { const component = render(App, {
const component = render(App, { target: document.getElementById('root')!
target: document.getElementById('root')! });
}); // @ts-ignore
// @ts-ignore window.unmount = () => unmount(component);
window.unmount = () => unmount(component);
}, 2000)

Loading…
Cancel
Save