use sw from config
This commit is contained in:
parent
9f60e73b5a
commit
1fd66c00fa
1 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue