1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2025-04-18 16:25:58 +02:00

Fix iOS prompt

This commit is contained in:
nimbleghost 2023-06-26 21:49:53 +02:00
parent 175ab5ea76
commit 0c496ca223

View file

@ -128,7 +128,8 @@ class Notifier {
} }
iosSupportedButInstallRequired() { 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;
} }
} }