Skip to content

Commit

Permalink
Refactor on.visibilitychange
Browse files Browse the repository at this point in the history
  • Loading branch information
SnowCait committed Oct 19, 2023
1 parent f106913 commit 544160a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@
}
onMount(() => {
document.addEventListener('visibilitychange', onVisibilityChange);
subscribeSystemTheme();
});
Expand All @@ -107,6 +106,7 @@
</script>

<svelte:window on:keyup={keyboardShortcut} />
<svelte:document on:visibilitychange={onVisibilityChange} />

<div class="app">
<NoteDialog />
Expand Down

0 comments on commit 544160a

Please sign in to comment.