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
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
triggerfunction that will be deconstruct in the callback event objet.I mean
self.trigger("fetch", request, {clientId: 123})Thank you