@@ -21,22 +21,20 @@ if (!self.define) {
21
21
22
22
const singleRequire = ( uri , parentUri ) => {
23
23
uri = new URL ( uri + ".js" , parentUri ) . href ;
24
- return registry [ uri ] || (
25
-
26
- new Promise ( resolve => {
27
- if ( "document" in self ) {
28
- const script = document . createElement ( "script" ) ;
29
- script . src = uri ;
30
- script . onload = resolve ;
31
- document . head . appendChild ( script ) ;
32
- } else {
33
- nextDefineUri = uri ;
34
- importScripts ( uri ) ;
35
- resolve ( ) ;
36
- }
37
- } )
38
-
39
- . then ( ( ) => {
24
+ return (
25
+ registry [ uri ] ||
26
+ new Promise ( ( resolve ) => {
27
+ if ( "document" in self ) {
28
+ const script = document . createElement ( "script" ) ;
29
+ script . src = uri ;
30
+ script . onload = resolve ;
31
+ document . head . appendChild ( script ) ;
32
+ } else {
33
+ nextDefineUri = uri ;
34
+ importScripts ( uri ) ;
35
+ resolve ( ) ;
36
+ }
37
+ } ) . then ( ( ) => {
40
38
let promise = registry [ uri ] ;
41
39
if ( ! promise ) {
42
40
throw new Error ( `Module ${ uri } didn’t register its module` ) ;
@@ -47,27 +45,31 @@ if (!self.define) {
47
45
} ;
48
46
49
47
self . define = ( depsNames , factory ) => {
50
- const uri = nextDefineUri || ( "document" in self ? document . currentScript . src : "" ) || location . href ;
48
+ const uri =
49
+ nextDefineUri ||
50
+ ( "document" in self ? document . currentScript . src : "" ) ||
51
+ location . href ;
51
52
if ( registry [ uri ] ) {
52
53
// Module is already loading or loaded.
53
54
return ;
54
55
}
55
56
let exports = { } ;
56
- const require = depUri => singleRequire ( depUri , uri ) ;
57
+ const require = ( depUri ) => singleRequire ( depUri , uri ) ;
57
58
const specialDeps = {
58
59
module : { uri } ,
59
60
exports,
60
- require
61
+ require,
61
62
} ;
62
- registry [ uri ] = Promise . all ( depsNames . map (
63
- depName => specialDeps [ depName ] || require ( depName )
64
- ) ) . then ( deps => {
63
+ registry [ uri ] = Promise . all (
64
+ depsNames . map ( ( depName ) => specialDeps [ depName ] || require ( depName ) )
65
+ ) . then ( ( deps ) => {
65
66
factory ( ...deps ) ;
66
67
return exports ;
67
68
} ) ;
68
69
} ;
69
70
}
70
- define ( [ './workbox-c982e567' ] , ( function ( workbox ) { 'use strict' ;
71
+ define ( [ "./workbox-c982e567" ] , function ( workbox ) {
72
+ "use strict" ;
71
73
72
74
self . skipWaiting ( ) ;
73
75
workbox . clientsClaim ( ) ;
@@ -77,16 +79,23 @@ define(['./workbox-c982e567'], (function (workbox) { 'use strict';
77
79
* requests for URLs in the manifest.
78
80
* See https://goo.gl/S9QRab
79
81
*/
80
- workbox . precacheAndRoute ( [ {
81
- "url" : "registerSW.js" ,
82
- "revision" : "3ca0b8505b4bec776b69afdba2768812"
83
- } , {
84
- "url" : "index.html" ,
85
- "revision" : "0.33unft5d5v8"
86
- } ] , { } ) ;
82
+ workbox . precacheAndRoute (
83
+ [
84
+ {
85
+ url : "registerSW.js" ,
86
+ revision : "3ca0b8505b4bec776b69afdba2768812" ,
87
+ } ,
88
+ {
89
+ url : "index.html" ,
90
+ revision : "0.6cjqtbs9mqg" ,
91
+ } ,
92
+ ] ,
93
+ { }
94
+ ) ;
87
95
workbox . cleanupOutdatedCaches ( ) ;
88
- workbox . registerRoute ( new workbox . NavigationRoute ( workbox . createHandlerBoundToURL ( "index.html" ) , {
89
- allowlist : [ / ^ \/ $ / ]
90
- } ) ) ;
91
-
92
- } ) ) ;
96
+ workbox . registerRoute (
97
+ new workbox . NavigationRoute ( workbox . createHandlerBoundToURL ( "index.html" ) , {
98
+ allowlist : [ / ^ \/ $ / ] ,
99
+ } )
100
+ ) ;
101
+ } ) ;
0 commit comments