From 64c4376ed388af106c1de5ec8bd1d1743950a27e Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Thu, 11 Jun 2020 23:15:10 +0800
Subject: feat(front): Application upgrade ui.

---
 Timeline/ClientApp/src/app/index.tsx | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

(limited to 'Timeline/ClientApp/src/app/index.tsx')

diff --git a/Timeline/ClientApp/src/app/index.tsx b/Timeline/ClientApp/src/app/index.tsx
index 73788c3a..ff874c45 100644
--- a/Timeline/ClientApp/src/app/index.tsx
+++ b/Timeline/ClientApp/src/app/index.tsx
@@ -14,9 +14,4 @@ import App from './App';
 
 ReactDOM.render(<App />, document.getElementById('app'));
 
-if ('serviceWorker' in navigator) {
-  // Use the window load event to keep the page load performant
-  window.addEventListener('load', () => {
-    void navigator.serviceWorker.register('/sw.js');
-  });
-}
+import './service-worker';
-- 
cgit v1.2.3

