mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 20:47:35 +03:00
fix(ui): service worker does not load new version of ui (#3402)
* fix(pwa): wip * fix(pwa): wip
This commit is contained in:
parent
270ae3549d
commit
0232afd98d
2 changed files with 4 additions and 0 deletions
|
@ -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'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue