Version 5.0.13
This commit is contained in:
1 parent
b89858b2ff
commit
5efe744c5f
1407 files changed
+69690
-30177
No files matched your search
@@ -86,7 +86,7 @@ self.addEventListener("push", (e) => {
|
||||
throw new Error("Server error");
|
||||
}
|
||||
|
||||
const { body, url, grouped, groupedTitle, groupedUrl, icon, image } = data;
|
||||
const { body, url, grouped, groupedTitle, groupedUrl, icon, image, unreadCount } = data;
|
||||
let { title } = data;
|
||||
let tag;
|
||||
|
||||
@@ -94,6 +94,11 @@ self.addEventListener("push", (e) => {
|
||||
tag = data.tag.substr(0, 30);
|
||||
}
|
||||
|
||||
if ( unreadCount && 'setAppBadge' in navigator )
|
||||
{
|
||||
navigator.setAppBadge(unreadCount);
|
||||
}
|
||||
|
||||
let options = {
|
||||
body,
|
||||
icon: icon ? icon : NOTIFICATION_ICON,
|
||||
|
||||
Reference in new issue
Block a user