this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Close notification early

Not sure if this would make a difference but possibly fix some bugs

+1 -1
+1 -1
public/sw.js
··· 163 163 const { access_token, notification_type } = data; 164 164 const url = `/#/notifications?id=${tag}&access_token=${btoa(access_token)}`; 165 165 166 + event.notification.close(); 166 167 event.waitUntil( 167 168 (async () => { 168 169 const clients = await self.clients.matchAll({ ··· 194 195 console.log('NOTIFICATION CLICK openWindow', url); 195 196 await self.clients.openWindow(url); 196 197 } 197 - await event.notification.close(); 198 198 })(), 199 199 ); 200 200 });