From 9f60e73b5a7da8bb530fcbd0e0f5976aa2371b1d Mon Sep 17 00:00:00 2001 From: David Reed Date: Sat, 3 Dec 2022 15:54:45 -0500 Subject: [PATCH] add note --- src/sw.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/sw.js b/src/sw.js index e5348d0..2faa900 100644 --- a/src/sw.js +++ b/src/sw.js @@ -1,4 +1,10 @@ /*global UVServiceWorker*/ +/* + * Stock service worker script. + * Users can provide their own sw.js if they need to extend the functionality of the service worker. + * Ideally, this will be registered under the scope in uv.config.js so it will not need to be modified. + * However, if a user changes the location of uv.bundle.js/uv.config.js or sw.js is not relative to them, they will need to modify this script locally. + */ importScripts('uv.bundle.js'); importScripts('uv.config.js'); importScripts('uv.sw.js');