From eee5f439b9ecfeaa02bcbd4d362678eb9f293630 Mon Sep 17 00:00:00 2001 From: Booteille Date: Thu, 31 Oct 2024 16:28:59 +0100 Subject: [PATCH] Cleanup --- themes/default/public/js/lufi-notifications.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/default/public/js/lufi-notifications.js b/themes/default/public/js/lufi-notifications.js index 16ea174..2931cf5 100644 --- a/themes/default/public/js/lufi-notifications.js +++ b/themes/default/public/js/lufi-notifications.js @@ -1,4 +1,4 @@ -function notify(title, body) { +const notify = (title, body) => { if (!"Notification" in window || typeof Notification === "undefined") { console.log( `This browser does not support desktop notification, cannot send following message: ${title} ${body}` @@ -15,7 +15,7 @@ function notify(title, body) { }; new Notification(title, options); } -} +}; document.addEventListener("DOMContentLoaded", function () { if (!"Notification" in window || typeof Notification === "undefined") {