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 4
4
// Check to make sure service workers are supported in the current browser,
5
5
// and that the current page is accessed from a secure origin. Using a
6
6
// 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' ||
8
8
// [::1] is the IPv6 localhost address.
9
9
window . location . hostname === '[::1]' ||
10
10
// 127.0.0.1/8 is considered localhost for IPv4.
26
26
// i.e. whether there's an existing service worker.
27
27
if ( navigator . serviceWorker . controller ) {
28
28
// The updatefound event implies that registration.installing is set
29
- const installingWorker = registration . installing ;
29
+ var installingWorker = registration . installing ;
30
30
31
31
installingWorker . onstatechange = function ( ) {
32
32
switch ( installingWorker . state ) {
You can’t perform that action at this time.
0 commit comments