fix: Window error in SSR
This commit is contained in:
		| @@ -70,8 +70,8 @@ | ||||
| 		} | ||||
| 	} | ||||
| 	onDestroy(() => { | ||||
| 		window.clearInterval(streamInterval); | ||||
| 		window.clearInterval(followingInterval); | ||||
| 		clearInterval(streamInterval); | ||||
| 		clearInterval(followingInterval); | ||||
| 	}); | ||||
| 	onMount(async () => { | ||||
| 		window.scrollTo(0, 0); | ||||
|   | ||||
| @@ -42,8 +42,8 @@ | ||||
| 		}, 1000); | ||||
| 	}); | ||||
| 	onDestroy(() => { | ||||
| 		window.clearInterval(loadLogsInterval); | ||||
| 		window.clearInterval(followingInterval); | ||||
| 		clearInterval(loadLogsInterval); | ||||
| 		clearInterval(followingInterval); | ||||
| 	}); | ||||
| 	async function loadLogs() { | ||||
| 		try { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Andras Bacsai
					Andras Bacsai