From 544160acda8adc6bdd788c01924f19f8ef016f95 Mon Sep 17 00:00:00 2001 From: SnowCait Date: Thu, 19 Oct 2023 19:51:58 +0900 Subject: [PATCH] Refactor on.visibilitychange --- web/src/routes/+layout.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/routes/+layout.svelte b/web/src/routes/+layout.svelte index a3b808997..f635217ee 100644 --- a/web/src/routes/+layout.svelte +++ b/web/src/routes/+layout.svelte @@ -80,7 +80,6 @@ } onMount(() => { - document.addEventListener('visibilitychange', onVisibilityChange); subscribeSystemTheme(); }); @@ -107,6 +106,7 @@ +