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