diff --git a/src/registerServiceWorker.ts b/src/registerServiceWorker.ts index 1b7baa6..f5b4b02 100644 --- a/src/registerServiceWorker.ts +++ b/src/registerServiceWorker.ts @@ -1,3 +1,4 @@ +// tslint:disable:no-console // In production, we register a service worker to serve assets from local cache. // This lets the app load faster on subsequent visits in production, and gives @@ -14,8 +15,8 @@ const isLocalhost = Boolean( window.location.hostname === '[::1]' || // 127.0.0.1/8 is considered localhost for IPv4. window.location.hostname.match( - /^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/, - ), + /^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/ + ) ) export default function register() { @@ -23,7 +24,7 @@ export default function register() { // The URL constructor is available in all browsers that support SW. const publicUrl = new URL( process.env.PUBLIC_URL!, - window.location.toString(), + window.location.toString() ) if (publicUrl.origin !== window.location.origin) { // Our service worker won't work if PUBLIC_URL is on a different origin @@ -44,7 +45,7 @@ export default function register() { navigator.serviceWorker.ready.then(() => { console.log( 'This web app is being served cache-first by a service ' + - 'worker. To learn more, visit https://goo.gl/SC7cgQ', + 'worker. To learn more, visit https://goo.gl/SC7cgQ' ) }) } else { @@ -108,7 +109,7 @@ function checkValidServiceWorker(swUrl: string) { }) .catch(() => { console.log( - 'No internet connection found. App is running in offline mode.', + 'No internet connection found. App is running in offline mode.' ) }) }