fix: Window error in SSR

This commit is contained in:
Andras Bacsai 2022-02-15 09:39:45 +01:00
parent c5b7f92caf
commit 857a38050e
2 changed files with 4 additions and 4 deletions

View File

@ -70,8 +70,8 @@
}
}
onDestroy(() => {
window.clearInterval(streamInterval);
window.clearInterval(followingInterval);
clearInterval(streamInterval);
clearInterval(followingInterval);
});
onMount(async () => {
window.scrollTo(0, 0);

View File

@ -42,8 +42,8 @@
}, 1000);
});
onDestroy(() => {
window.clearInterval(loadLogsInterval);
window.clearInterval(followingInterval);
clearInterval(loadLogsInterval);
clearInterval(followingInterval);
});
async function loadLogs() {
try {