this repo has no description
0
fork

Configure Feed

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

Try focus first, then postMessage

+1 -1
+1 -1
public/sw.js
··· 179 179 console.log('NOTIFICATION CLICK navigate', url); 180 180 if (bestClient) { 181 181 console.log('NOTIFICATION CLICK postMessage', bestClient); 182 + bestClient.focus(); 182 183 bestClient.postMessage?.({ 183 184 type: 'notification', 184 185 id: tag, 185 186 accessToken: access_token, 186 187 }); 187 - bestClient.focus(); 188 188 } else { 189 189 console.log('NOTIFICATION CLICK openWindow', url); 190 190 await self.clients.openWindow(url);