From c6419128a473e13e3c8c072df2438156257e6500 Mon Sep 17 00:00:00 2001 From: kouhei ueno Date: Tue, 2 Jul 2019 14:04:38 +0900 Subject: [PATCH] fix --- src/index.tsx | 6 +++--- src/serviceWorker.ts | 8 ++------ 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 0765f22..61b5ded 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -13,14 +13,14 @@ ReactDOM.render( , document.getElementById('root') diff --git a/src/serviceWorker.ts b/src/serviceWorker.ts index 15d90cb..e6880bd 100644 --- a/src/serviceWorker.ts +++ b/src/serviceWorker.ts @@ -15,9 +15,7 @@ const isLocalhost = Boolean( // [::1] is the IPv6 localhost address. 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}$/ - ) + window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/) ); type Config = { @@ -128,9 +126,7 @@ function checkValidServiceWorker(swUrl: string, config?: Config) { } }) .catch(() => { - console.log( - 'No internet connection found. App is running in offline mode.' - ); + console.log('No internet connection found. App is running in offline mode.'); }); }