diff --git a/dist/upup.min.js.map b/dist/upup.min.js.map index 3cc69ef..e4b4294 100644 --- a/dist/upup.min.js.map +++ b/dist/upup.min.js.map @@ -1 +1 @@ -{"version":3,"sources":["../src/upup.js"],"names":["undefined","_serviceWorker","navigator","serviceWorker","this","UpUp","_settings","service-worker-url","registration-options","_debugState","_debugStyle","start","settings","addSettings","register","then","registration","console","log","scope","installing","controller","active","postMessage","action","catch","err","content","forEach","settingName","debug","newState","arguments","length","call"],"mappings":";;;;;CAMC,SAASA,GACR,aA6GA,IAGIC,EAAiBC,UAAUC,cAK/B,IAAKF,EAEH,OAVUG,KASJC,KAAO,KACNL,EAIT,IAAIM,EAAY,CACdC,qBAAsB,iBACtBC,uBAAwB,IAGtBC,GAAc,EACdC,EAAc,kCApBNN,KAuBNC,KAAO,CAoBXM,MAAO,SAASC,GACdR,KAAKS,YAAYD,GAGjBX,EAAea,SAASR,EAAU,sBAAuBA,EAAU,yBAAyBS,KAAK,SAASC,GAEpGP,GACFQ,QAAQC,IAAI,wDAAwDF,EAAaG,MAAOT,IAI1EM,EAAaI,YAAcnB,EAAeoB,YAAcL,EAAaM,QAC3EC,YAAY,CAACC,OAAU,eAAgBZ,SAAYN,MAE5DmB,MAAM,SAASC,GAEZjB,GACFQ,QAAQC,IAAI,yCAAyCQ,EAAKhB,MAyBhEG,YAAa,SAASD,GAII,iBAHxBA,EAAWA,GAAY,MAIrBA,EAAW,CAAEe,QAASf,IAIxB,CACE,UACA,cACA,SACA,qBACA,iBACAgB,QAAQ,SAASC,GACbjB,EAASiB,KAAiB7B,IAC5BM,EAAUuB,GAAejB,EAASiB,MAKlCjB,EAAgB,QAAMZ,IACxBM,EAAU,wBAA+B,MAAIM,EAAgB,QAYjEkB,MAAO,SAASC,GAEZtB,IADqB,EAAnBuB,UAAUC,WACIF,MAMtBG,KAAK9B","file":"upup.min.js"} \ No newline at end of file +{"version":3,"sources":["../src/upup.js"],"names":["undefined","_serviceWorker","navigator","serviceWorker","this","UpUp","_settings","service-worker-url","registration-options","_debugState","_debugStyle","start","settings","addSettings","register","then","registration","console","log","scope","installing","controller","active","postMessage","action","catch","err","content","forEach","settingName","debug","newState","arguments","length","call"],"mappings":";;;;;CAMC,SAASA,GACR,aA8GA,IAGIC,EAAiBC,UAAUC,cAK/B,IAAKF,EAEH,OAVUG,KASJC,KAAO,KACNL,EAIT,IAAIM,EAAY,CACdC,qBAAsB,iBACtBC,uBAAwB,IAGtBC,GAAc,EACdC,EAAc,kCApBNN,KAuBNC,KAAO,CAoBXM,MAAO,SAASC,GACdR,KAAKS,YAAYD,GAGjBX,EAAea,SAASR,EAAU,sBAAuBA,EAAU,yBAAyBS,KAAK,SAASC,GAEpGP,GACFQ,QAAQC,IAAI,wDAAwDF,EAAaG,MAAOT,IAI1EM,EAAaI,YAAcnB,EAAeoB,YAAcL,EAAaM,QAC3EC,YAAY,CAACC,OAAU,eAAgBZ,SAAYN,MAE5DmB,MAAM,SAASC,GAEZjB,GACFQ,QAAQC,IAAI,yCAAyCQ,EAAKhB,MAyBhEG,YAAa,SAASD,GAII,iBAHxBA,EAAWA,GAAY,MAIrBA,EAAW,CAAEe,QAASf,IAIxB,CACE,UACA,cACA,SACA,qBACA,iBACAgB,QAAQ,SAASC,GACbjB,EAASiB,KAAiB7B,IAC5BM,EAAUuB,GAAejB,EAASiB,MAKlCjB,EAAgB,QAAMZ,IACxBM,EAAU,wBAA+B,MAAIM,EAAgB,QAYjEkB,MAAO,SAASC,GAEZtB,IADqB,EAAnBuB,UAAUC,WACIF,MAMtBG,KAAK9B","file":"upup.min.js"} \ No newline at end of file diff --git a/dist/upup.zip b/dist/upup.zip index 2c7a89e..b244054 100644 Binary files a/dist/upup.zip and b/dist/upup.zip differ diff --git a/docs/README.md b/docs/README.md index cc264c2..0c17023 100644 --- a/docs/README.md +++ b/docs/README.md @@ -47,6 +47,7 @@ UpUp.start({ ```` It is also possible to modify the scope that UpUp will control by using the [scope setting](https://github.com/TalAter/UpUp/tree/master/docs#settings). Note that this scope must be contained at the same level as the service worker file, or deeper. + e.g., If `upup.sw.min.js` is located at the root of your site you can limit the scope to the root (default behavior) or a subdirectory under it. If `upup.sw.min.js` is located in a subdirectory you can limit the scope to that subdirectory (default behavior), a subdirectory within the first subdirectory, but not a different subdirectory under the root, or the root. ### Cache Versions diff --git a/src/upup.js b/src/upup.js index 554e41b..72374f2 100644 --- a/src/upup.js +++ b/src/upup.js @@ -53,6 +53,7 @@ * ```` * * It is also possible to modify the scope that UpUp will control by using the [scope setting](https://github.com/TalAter/UpUp/tree/master/docs#settings). Note that this scope must be contained at the same level as the service worker file, or deeper. + * * e.g., If `upup.sw.min.js` is located at the root of your site you can limit the scope to the root (default behavior) or a subdirectory under it. If `upup.sw.min.js` is located in a subdirectory you can limit the scope to that subdirectory (default behavior), a subdirectory within the first subdirectory, but not a different subdirectory under the root, or the root. * * ### Cache Versions