diff options
author | crupest <crupest@outlook.com> | 2020-06-11 23:15:10 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-06-11 23:15:10 +0800 |
commit | 532775219a11817cea0f5c44c9bbcc99d815a884 (patch) | |
tree | 7025158d81076aabd42bd864217bf3c07cca2128 /Timeline/ClientApp/src/app/index.tsx | |
parent | cf6cfe87b46a2a3eb2913209092ab4c5639e75c3 (diff) | |
download | timeline-532775219a11817cea0f5c44c9bbcc99d815a884.tar.gz timeline-532775219a11817cea0f5c44c9bbcc99d815a884.tar.bz2 timeline-532775219a11817cea0f5c44c9bbcc99d815a884.zip |
feat(front): Application upgrade ui.
Diffstat (limited to 'Timeline/ClientApp/src/app/index.tsx')
-rw-r--r-- | Timeline/ClientApp/src/app/index.tsx | 7 |
1 files changed, 1 insertions, 6 deletions
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'; |