From 60f6b298329728fc8a91cd8c688c9b38fa302f0d Mon Sep 17 00:00:00 2001
From: Owen Jacobson <owen@grimoire.ca>
Date: Thu, 20 Feb 2025 18:41:18 -0500
Subject: Remove the last lingering Svelte4-style event bindings.

---
 ui/routes/(app)/+layout.svelte | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'ui/routes/(app)/+layout.svelte')

diff --git a/ui/routes/(app)/+layout.svelte b/ui/routes/(app)/+layout.svelte
index 3752bef..5ec84d9 100644
--- a/ui/routes/(app)/+layout.svelte
+++ b/ui/routes/(app)/+layout.svelte
@@ -99,18 +99,18 @@
     }
   });
 
-  function beforeUnload(evt) {
-    evt.preventDefault();
+  function onbeforeunload(event) {
+    event.preventDefault();
     if (events !== null) {
       events.close();
     }
     // For some compat reasons?
-    evt.returnValue = '';
+    event.returnValue = '';
     return '';
   }
 </script>
 
-<svelte:window on:beforeunload={beforeUnload} />
+<svelte:window {onbeforeunload} />
 
 <svelte:head>
   <!-- TODO: unread count? -->
-- 
cgit v1.2.3

