Skip to content

Commit 83a513e

Browse files
committed
Fixed race condition with error
1 parent 9582562 commit 83a513e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/lib/components/NotificationModel.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
let notificationsEnabled: boolean = false;
66
let notificationDenied = false;
77
let notificationsSupported = 'Notification' in window;
8+
let errorText = '';
9+
810
911
setInterval(updatePermissionStatus, 1000);
1012
updatePermissionStatus();
@@ -17,7 +19,6 @@
1719
}
1820
});
1921
20-
let errorText = '';
2122
2223
2324
function updatePermissionStatus() {

0 commit comments

Comments
 (0)