Skip to content

Commit

Permalink
Re-activate immediate serviceworker registration
Browse files Browse the repository at this point in the history
  • Loading branch information
russss committed Mar 4, 2024
1 parent ee0d49c commit 4e66715
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import './index.css'
import { registerSW } from 'virtual:pwa-register'
import maplibregl from 'maplibre-gl'
import map_style from './map_style.json'
import Marker from './marker'
Expand Down Expand Up @@ -36,6 +37,7 @@ class EventMap {
marker?: Marker

init() {
registerSW({ immediate: true })
const layers_enabled = ['Background', 'Structures', 'Paths', 'Villages']
this.layer_switcher = new LayerSwitcher(this.layers, layers_enabled)

Expand Down

0 comments on commit 4e66715

Please sign in to comment.