Baseline Widely available
url
㯠Client
ã¤ã³ã¿ã¼ãã§ã¤ã¹ã®èªã¿åãå°ç¨ããããã£ã§ãç¾å¨ã®ãµã¼ãã¹ã¯ã¼ã«ã¼ã¯ã©ã¤ã¢ã³ãã® URL ãè¿ãã¾ãã
æååã§ãã
ä¾self.addEventListener("notificationclick", (event) => {
console.log("On notification click: ", event.notification.tag);
event.notification.close();
// ããã¯ãã¯ã©ã¤ã¢ã³ããæ¢ã«éãã¦ãããã©ããã確èªãã
// éãã¦ããå ´åã«ãã©ã¼ã«ã¹ãåããã¾ã
event.waitUntil(
clients
.matchAll({
type: "window",
})
.then((clientList) => {
for (const client of clientList) {
if (client.url === "/" && "focus" in client) {
return client.focus();
}
}
if (clients.openWindow) {
return clients.openWindow("/");
}
}),
);
});
仿§æ¸ ãã©ã¦ã¶ã¼ã®äºææ§
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4