File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 44 // Check to make sure service workers are supported in the current browser,
55 // and that the current page is accessed from a secure origin. Using a
66 // service worker from an insecure origin will trigger JS console errors.
7- const isLocalhost = Boolean ( window . location . hostname === 'localhost' ||
7+ var isLocalhost = Boolean ( window . location . hostname === 'localhost' ||
88 // [::1] is the IPv6 localhost address.
99 window . location . hostname === '[::1]' ||
1010 // 127.0.0.1/8 is considered localhost for IPv4.
2626 // i.e. whether there's an existing service worker.
2727 if ( navigator . serviceWorker . controller ) {
2828 // The updatefound event implies that registration.installing is set
29- const installingWorker = registration . installing ;
29+ var installingWorker = registration . installing ;
3030
3131 installingWorker . onstatechange = function ( ) {
3232 switch ( installingWorker . state ) {
You can’t perform that action at this time.
0 commit comments