From 857a38050e1a0956f1ad77f728a8383d9769ded3 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 15 Feb 2022 09:39:45 +0100 Subject: [PATCH] fix: Window error in SSR --- src/routes/applications/[id]/logs/build/_BuildLog.svelte | 4 ++-- src/routes/applications/[id]/logs/index.svelte | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/routes/applications/[id]/logs/build/_BuildLog.svelte b/src/routes/applications/[id]/logs/build/_BuildLog.svelte index 0803e69de..839621f28 100644 --- a/src/routes/applications/[id]/logs/build/_BuildLog.svelte +++ b/src/routes/applications/[id]/logs/build/_BuildLog.svelte @@ -70,8 +70,8 @@ } } onDestroy(() => { - window.clearInterval(streamInterval); - window.clearInterval(followingInterval); + clearInterval(streamInterval); + clearInterval(followingInterval); }); onMount(async () => { window.scrollTo(0, 0); diff --git a/src/routes/applications/[id]/logs/index.svelte b/src/routes/applications/[id]/logs/index.svelte index a04fca2e3..e558934a0 100644 --- a/src/routes/applications/[id]/logs/index.svelte +++ b/src/routes/applications/[id]/logs/index.svelte @@ -42,8 +42,8 @@ }, 1000); }); onDestroy(() => { - window.clearInterval(loadLogsInterval); - window.clearInterval(followingInterval); + clearInterval(loadLogsInterval); + clearInterval(followingInterval); }); async function loadLogs() { try {