8000 NotificationEvent is not really user constructible · Issue #235 · whatwg/notifications · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000
NotificationEvent is not really user constructible #235
Open
@saschanaz

Description

@saschanaz

What is the issue with the Notifications API Standard?

The service-worker-only event's init dictionary requires a Notification object, but its construction is restricted in service workers. Meaning there's no good way to call the constructor.

The new Notification(title, options) constructor steps are:

  1. If this’s relevant global object is a ServiceWorkerGlobalScope object, then throw a TypeError.

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

      0