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:
parent
0c25425346
commit
7aa3d8f59b
2 changed files with 6 additions and 3 deletions
web/src/app
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue