Skip to content

Commit 6f58e38

Browse files
authored
Merge pull request #20 from sparanoid/patch-1
Silent when permission granted
2 parents 47fc6d9 + 3a8afc2 commit 6f58e38

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/settings.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ function checkNotificationPromise(): boolean {
88
}
99

1010
function handlePermission(permission: string): void {
11-
if (permission === 'granted') {
12-
alert('Browser Notifications are allowed. (^_^)b');
13-
} else {
11+
if (permission !== 'granted') {
1412
alert(
1513
'Browser Notifications are not allowed. Please update your browser settings to allow notifications.'
1614
);

0 commit comments

Comments
 (0)