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
1 changed files with 1 additions and 1 deletions

View File

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