Skip to content
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
Open
@mocanuga

Description

@mocanuga

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions