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") {