extracted event listeners out of debug components into dedicated files
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
<script>
|
||||
import { browser } from "$app/environment";
|
||||
import { onMount } from "svelte";
|
||||
import { initAppListeners } from "$lib/listeners";
|
||||
import "../app.css";
|
||||
|
||||
let { children } = $props();
|
||||
|
||||
onMount(initAppListeners);
|
||||
|
||||
if (browser) {
|
||||
document.addEventListener("contextmenu", (e) => {
|
||||
e.preventDefault();
|
||||
|
||||
Reference in New Issue
Block a user