fix messages from sw not really being acted upon on mainland

This commit is contained in:
Henry Jameson 2023-11-19 13:57:47 +02:00
parent a564fc1a1f
commit 2f90c629b8

View File

@ -88,7 +88,7 @@ export async function initServiceWorker (store) {
navigator.serviceWorker.addEventListener('message', (event) => { navigator.serviceWorker.addEventListener('message', (event) => {
const { dispatch } = store const { dispatch } = store
console.log('SW MESSAGE', event) console.log('SW MESSAGE', event)
const { type, ...rest } = event const { type, ...rest } = event.data
switch (type) { switch (type) {
case 'notificationClicked': case 'notificationClicked':