diff --git a/web/src/components/Preferences.jsx b/web/src/components/Preferences.jsx index 7fb2753c..e12fdadb 100644 --- a/web/src/components/Preferences.jsx +++ b/web/src/components/Preferences.jsx @@ -86,7 +86,7 @@ const Notifications = () => { - {config.enable_web_push && } + {notifier.pushPossible() && } ); @@ -242,10 +242,6 @@ const WebPushEnabled = () => { await prefs.setWebPushEnabled(ev.target.value); }; - if (!notifier.pushPossible()) { - return null; - } - return (