fix(ui): service worker does not load new version of ui (#3402)
* fix(pwa): wip * fix(pwa): wip
This commit is contained in:
@@ -3,5 +3,8 @@ window.global = window // fix "global is not defined" error in react-image-light
|
||||
import ReactDOM from 'react-dom'
|
||||
import './index.css'
|
||||
import App from './App'
|
||||
import { registerSW } from 'virtual:pwa-register'
|
||||
|
||||
registerSW({ immediate: true })
|
||||
|
||||
ReactDOM.render(<App />, document.getElementById('root'))
|
||||
|
||||
Reference in New Issue
Block a user