Files
Polaris/static/dynamic/sw.js
T
Russell2259 02341d2504 testing
2024-01-05 15:41:47 +00:00

9 lines
294 B
JavaScript

importScripts('/dynamic/dynamic.config.js');
importScripts('/dynamic/dynamic.worker.js');
const sw = new Dynamic();
self.addEventListener('fetch', async (event) => {
/*if (await sw.route(event)) */event.respondWith(sw.fetch(event));
//else event.respondWith(fetch(event.request));
});