use sw from config

This commit is contained in:
David Reed 2022-12-03 15:55:39 -05:00
parent 9f60e73b5a
commit 1fd66c00fa
No known key found for this signature in database
GPG key ID: 2211691D8A1EE72F

View file

@ -1,4 +1,4 @@
/*global UVServiceWorker*/
/*global UVServiceWorker,__uv$config*/
/*
* Stock service worker script.
* Users can provide their own sw.js if they need to extend the functionality of the service worker.
@ -7,7 +7,7 @@
*/
importScripts('uv.bundle.js');
importScripts('uv.config.js');
importScripts('uv.sw.js');
importScripts(__uv$config.sw || 'uv.sw.js');
const sw = new UVServiceWorker();