From 1fd66c00fa6fddc9ae7af1a5fa79ed2b102ef284 Mon Sep 17 00:00:00 2001 From: David Reed Date: Sat, 3 Dec 2022 15:55:39 -0500 Subject: [PATCH] use sw from config --- src/sw.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sw.js b/src/sw.js index 2faa900..aa71c1e 100644 --- a/src/sw.js +++ b/src/sw.js @@ -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();