commit: 2f90c629b8e765cbc2ab024aa856d9a3e810d8f5
parent a564fc1a1f91faf2a418fd6affadbd42c98825d8
Author: Henry Jameson <me@hjkos.com>
Date: Sun, 19 Nov 2023 13:57:47 +0200
fix messages from sw not really being acted upon on mainland
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/services/sw/sw.js b/src/services/sw/sw.js
@@ -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':