We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9ea57e commit 6d58d6eCopy full SHA for 6d58d6e
src/helpers/windowhelper.ts
@@ -23,8 +23,6 @@ export function loadContextmenu() {
23
}
24
25
26
-// TODO: Remove the counter
27
-let notificationCount = 0;
28
export function pushNotification(options: string | Options) {
29
isPermissionGranted().then((granted) => {
30
if (!granted) {
@@ -36,10 +34,7 @@ export function pushNotification(options: string | Options) {
36
34
});
37
35
38
console.log("permission granted");
39
- if (typeof options === 'object') options.body = `${options.body} ${notificationCount}`;
40
- if (typeof options === 'string') options = `${options} ${notificationCount}`;
41
sendNotification(options);
42
- notificationCount++;
43
44
45
0 commit comments