This repository was archived by the owner on Sep 29, 2024. It is now read-only.
This repository was archived by the owner on Sep 29, 2024. It is now read-only.
Demo is broken #3
Open
Description
The demo is broken in Edge/17.17134
It seems that the whole service worker registration process is broken.
(function (win, nav) {
'use strict';
var pushNotificationsSupport = 'serviceWorker' in nav && 'PushManager' in win && 'Notification' in win;
console.log('push notification suppport: ', pushNotificationsSupport)
if(pushNotificationsSupport) {
nav.serviceWorker.register('/tests/ie/sw.js', {scope: '/tests/ie/'})
.then(function() {
console.log(arguments);
})
.catch(function(err) {
console.log(err);
})
}
}(window, navigator));
The code above fails with
{description: "Invalid argument", message: "Invalid argument", number: -2147418113}
Metadata
Metadata
Assignees
Labels
No labels