From 0c496ca223dd2fb8d41ca37f36ee035799019439 Mon Sep 17 00:00:00 2001
From: nimbleghost <132819643+nimbleghost@users.noreply.github.com>
Date: Mon, 26 Jun 2023 21:49:53 +0200
Subject: [PATCH] Fix iOS prompt

---
 web/src/app/Notifier.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/web/src/app/Notifier.js b/web/src/app/Notifier.js
index e4232175..7f394ae9 100644
--- a/web/src/app/Notifier.js
+++ b/web/src/app/Notifier.js
@@ -128,7 +128,8 @@ class Notifier {
   }
 
   iosSupportedButInstallRequired() {
-    return this.pushSupported() && "standalone" in window.navigator && window.navigator.standalone === false;
+    // no PushManager when not installed, but it _is_ supported.
+    return config.enable_web_push && "serviceWorker" in navigator && window.navigator.standalone === false;
   }
 }