fix messages from sw not really being acted upon on mainland
This commit is contained in:
parent
a564fc1a1f
commit
2f90c629b8
@ -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':
|
||||
|
Loading…
Reference in New Issue
Block a user