Skip to content

Commit

Permalink
Fix build with not found window
Browse files Browse the repository at this point in the history
  • Loading branch information
RobolabGs2 committed Feb 1, 2024
1 parent 2fcb1ff commit a64ca62
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/lib/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,12 @@
} catch (e: unknown) {
$error = e;
}
window.addEventListener('keydown', (ev) => {
if (ev.key == 'F12') {
if (ev.ctrlKey) devMode = !devMode;
else if (ev.shiftKey) devTools = true;
}
});
return () => memaker.clear();
});
Expand All @@ -128,12 +133,6 @@
let devMode = false;
let devTools = false;
window.addEventListener('keydown', (ev) => {
if (ev.key == 'F12') {
if (ev.ctrlKey) devMode = !devMode;
else if (ev.shiftKey) devTools = true;
}
});
</script>

<ThemeContext bind:theme={$theme}>
Expand Down

0 comments on commit a64ca62

Please sign in to comment.