File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -118,9 +118,9 @@ export async function showNotifications(notifications) {
118
118
}
119
119
}
120
120
121
- export async function playNotificationSound ( ) {
121
+ export function playNotificationSound ( ) {
122
122
const audio = new Audio ( ) ;
123
- audio . src = await browser . extension . getURL ( '/ sounds/bell.ogg' ) ;
123
+ audio . src = browser . runtime . getURL ( 'sounds/bell.ogg' ) ;
124
124
audio . play ( ) ;
125
125
}
126
126
@@ -138,8 +138,8 @@ export async function checkNotifications(lastModified) {
138
138
/* eslint-enable camelcase */
139
139
}
140
140
141
- if ( playNotifSound && notifications . length > 1 ) {
142
- await playNotificationSound ( ) ;
141
+ if ( playNotifSound && notifications . length > 0 ) {
142
+ playNotificationSound ( ) ;
143
143
}
144
144
145
145
if ( showDesktopNotif ) {
You can’t perform that action at this time.
0 commit comments