From 213266f97a9c72c66b75742931b15fd195aa7959 Mon Sep 17 00:00:00 2001
From: Kit La Touche <kit@transneptune.net>
Date: Thu, 31 Oct 2024 16:24:31 -0400
Subject: Do some toast notificating

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

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

diff --git a/ui/routes/+layout.svelte b/ui/routes/+layout.svelte
index bc5b781..fbc17ec 100644
--- a/ui/routes/+layout.svelte
+++ b/ui/routes/+layout.svelte
@@ -2,6 +2,8 @@
     import "../app.css";
     import logo from '$lib/assets/logo.png';
 
+    import { onMount } from 'svelte';
+
     import { AppBar } from '@skeletonlabs/skeleton';
     import { showMenu, currentUser } from '$lib/store';
 
@@ -10,6 +12,12 @@
     function toggleMenu() {
         showMenu.update((value) => !value);
     }
+
+    onMount(() => {
+        Notification.requestPermission().then((result) => {
+            console.log(result);
+        });
+    });
 </script>
 
 <div id="app" class="m-0 p-0 h-vh w-full">
-- 
cgit v1.2.3

