1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2025-07-05 02:24:43 +02:00

Hide web push toggles if disabled on server

This commit is contained in:
nimbleghost 2023-05-31 18:43:06 +02:00
parent 0c25425346
commit 7aa3d8f59b
2 changed files with 6 additions and 3 deletions
web/src/app

View file

@ -115,7 +115,7 @@ class Notifier {
}
pushSupported() {
return "serviceWorker" in navigator && "PushManager" in window;
return config.enable_web_push && "serviceWorker" in navigator && "PushManager" in window;
}
/**