Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix: Window error in SSR

Andras Bacsai857a38050e1a
diff --git a/src/routes/applications/[id]/logs/build/_BuildLog.svelte b/src/routes/applications/[id]/logs/build/_BuildLog.svelte
index 0803e69de9..839621f28c 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 a04fca2e36..e558934a0e 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 {