diff --git a/client/js/options.js b/client/js/options.js index 64f2a43f..085ae38d 100644 --- a/client/js/options.js +++ b/client/js/options.js @@ -150,7 +150,7 @@ function applySetting(name, value) { autocompletion.disable(); } } else if (name === "desktopNotifications") { - if (value && Notification.permission !== "granted") { + if (("Notification" in window) && value && Notification.permission !== "granted") { Notification.requestPermission(updateDesktopNotificationStatus); } else if (!value) { $warningBlocked.hide();