diff --git a/src/pages/Settings.tsx b/src/pages/Settings.tsx index 565b5a8..ed5960d 100644 --- a/src/pages/Settings.tsx +++ b/src/pages/Settings.tsx @@ -218,6 +218,9 @@ class SettingsPage extends Component { * is in `"default"` state, get the permission request first. */ togglePushNotifications() { + if (!browserSupportsNotificationRequests()) { + return; + } if (Notification.permission === "default") { getNotificationRequestPermission() .then(permission => {