Implement push subscription expiry
This commit is contained in:
parent
47ad024ec7
commit
0f0074cbab
16 changed files with 272 additions and 102 deletions
|
@ -58,9 +58,7 @@ const App = () => {
|
|||
const updateTitle = (newNotificationsCount) => {
|
||||
document.title = newNotificationsCount > 0 ? `(${newNotificationsCount}) ntfy` : "ntfy";
|
||||
|
||||
if ("setAppBadge" in window.navigator) {
|
||||
window.navigator.setAppBadge(newNotificationsCount);
|
||||
}
|
||||
window.navigator.setAppBadge?.(newNotificationsCount);
|
||||
};
|
||||
|
||||
const Layout = () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue