Phase 13: Real Lint Gate — type-aware ESLint + Prettier format gate #8
+10
-1
@@ -171,7 +171,16 @@ self.addEventListener('notificationclick', (event: NotificationEvent) => {
|
|||||||
// from the current window location (query string with event uid / date).
|
// from the current window location (query string with event uid / date).
|
||||||
for (const client of clientList) {
|
for (const client of clientList) {
|
||||||
if ('focus' in client) {
|
if ('focus' in client) {
|
||||||
return client.focus().then(() => client.navigate(url));
|
return client
|
||||||
|
.focus()
|
||||||
|
.then(() => client.navigate(url))
|
||||||
|
.then((navigated) => {
|
||||||
|
if (navigated === null && self.clients.openWindow)
|
||||||
|
return self.clients.openWindow(url);
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
if (self.clients.openWindow) return self.clients.openWindow(url);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// No existing window — open a new one at the deep-link URL
|
// No existing window — open a new one at the deep-link URL
|
||||||
|
|||||||
Reference in New Issue
Block a user