Skip to content

Commit 6d58d6e

Browse files
committed
Remove counter in pushNotification function
1 parent a9ea57e commit 6d58d6e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/helpers/windowhelper.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ export function loadContextmenu() {
2323
}
2424

2525

26-
// TODO: Remove the counter
27-
let notificationCount = 0;
2826
export function pushNotification(options: string | Options) {
2927
isPermissionGranted().then((granted) => {
3028
if (!granted) {
@@ -36,10 +34,7 @@ export function pushNotification(options: string | Options) {
3634
});
3735
}
3836
console.log("permission granted");
39-
if (typeof options === 'object') options.body = `${options.body} ${notificationCount}`;
40-
if (typeof options === 'string') options = `${options} ${notificationCount}`;
4137
sendNotification(options);
42-
notificationCount++;
4338
});
4439
}
4540

0 commit comments

Comments
 (0)