Skip to content

Add "clientId" to fetch event #131

@jRichardeau

Description

@jRichardeau

Hi,

When using self.trigger("fetch", request) in service-worker-mock we can only pass the request to the listener while in real browser the fetch callback also receives a clientId in the event.

Is it possible to add this ?

I think this should be in the utils/eventHandler.js file.

We could add a third argument to the trigger function that will be deconstruct in the callback event objet.

I mean self.trigger("fetch", request, {clientId: 123})

Thank you

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