diff --git a/public/js/notifications.js b/public/js/notifications.js index a50d9a98..d4c43164 100644 --- a/public/js/notifications.js +++ b/public/js/notifications.js @@ -20,6 +20,12 @@ const VERSION = 1; return; } + if (! navigator.serviceWorker) { + console.error(LOG_PREFIX + "this browser does not support the 'Service Worker API' in the current context"); + + return; + } + if (! 'Notification' in self) { console.error(LOG_PREFIX + "this browser does not support the 'Notification API' in the current context");