From e2120bc66d963e315bf654a6a9f2bdb7ede1ca04 Mon Sep 17 00:00:00 2001
From: nimbleghost <132819643+nimbleghost@users.noreply.github.com>
Date: Wed, 14 Jun 2023 14:33:35 +0200
Subject: [PATCH] Improve WebPushEnabled conditional display
---
web/src/components/Preferences.jsx | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
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 (