Skip to content

[service-worker-mock] Triggering a 'notificationclick' does not pass 'action' to the NotificationEvent #130

@wesleyorbin

Description

@wesleyorbin

Hello! Thanks for creating and maintaining the server-worker-mock package. It's been super helpful for our service worker testing. However, we are having one issue when testing actions in our notificationclick event listener.

It seems that when handling the notificationclick event, the eventHandler pushes all arguments to the notification property, making it impossible to add an action to the NotificationEvent through self.trigger('notificationclick').

If you don't have a CLA to sign, I would be happy to push up a fix for this, as it should be relatively simple.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions