- From: Domenic Denicola <notifications@github.com>
- Date: Tue, 08 Aug 2023 22:15:37 -0700
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 9 August 2023 05:15:42 UTC
I think this behavior is WAI. If you call `importScripts()` on a script before your own `install` handler, you are giving that script priority to install routes. If you would like to have your own code take priority, then you should rearrange `sw.js` like so: ```js addEventListener('install', (event) => { event.registerRouter(/* ... */); }); importScripts('b.com/imported-sw.js'); ``` -- Reply to this email directly or view it on GitHub: https://github.com/w3c/ServiceWorker/issues/1373#issuecomment-1670685222 You are receiving this because you are subscribed to this thread. Message ID: <w3c/ServiceWorker/issues/1373/1670685222@github.com>
Received on Wednesday, 9 August 2023 05:15:42 UTC