Add program reminders and category filtering to the guide UI
Enhance health diagnostics with EPG quality and source metrics
This commit is contained in:
@@ -75,3 +75,20 @@ self.addEventListener('fetch', e => {
|
||||
.catch(() => caches.match(e.request))
|
||||
);
|
||||
});
|
||||
|
||||
self.addEventListener('notificationclick', e => {
|
||||
const url = e.notification?.data?.url || '/index.php';
|
||||
e.notification.close();
|
||||
e.waitUntil(
|
||||
clients.matchAll({ type: 'window', includeUncontrolled: true }).then(windowClients => {
|
||||
for (const client of windowClients) {
|
||||
if ('focus' in client) {
|
||||
client.navigate(url);
|
||||
return client.focus();
|
||||
}
|
||||
}
|
||||
if (clients.openWindow) return clients.openWindow(url);
|
||||
return undefined;
|
||||
})
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user