mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-12-08 16:52:37 -05:00
More web push progress.
This commit is contained in:
@@ -13842,6 +13842,7 @@
|
||||
//
|
||||
|
||||
function setupServiceWorker() {
|
||||
if ((features2 & 8) == 0) return; // Web push not enabled on this server
|
||||
if ((typeof serverinfo.vapidpublickey != 'string') || (Notification == null) || (Notification.permission != 'granted')) return;
|
||||
// Register the service worker
|
||||
if ('serviceWorker' in navigator) {
|
||||
|
||||
Reference in New Issue
Block a user