This commit is contained in:
nnduc
2026-10-24 14:03:52 +07:00
commit 4fe046de58
4790 changed files with 311146 additions and 0 deletions
@@ -0,0 +1,18 @@
MovimWebsocket.attach(function() {
if (Notification.permission !== 'granted') {
NotificationConfig_ajaxHttpRequest();
}
navigator.serviceWorker.getRegistration(SW_URI).then((registration) => {
if (!registration) {
NotificationConfig_ajaxHttpPushGetConfig();
return;
}
registration.pushManager.getSubscription().then((pushSubscription) => {
NotificationConfig_ajaxHttpPushGetConfig(pushSubscription ? pushSubscription.endpoint : null);
}, () => {
NotificationConfig_ajaxHttpPushGetConfig();
});
});
});