We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b254f3 commit 7a01849Copy full SHA for 7a01849
source/lib/notifications-service.js
@@ -118,9 +118,9 @@ export async function showNotifications(notifications) {
118
}
119
120
121
-export async function playNotificationSound() {
+export function playNotificationSound() {
122
const audio = new Audio();
123
- audio.src = await browser.extension.getURL('/sounds/bell.ogg');
+ audio.src = browser.runtime.getURL('sounds/bell.ogg');
124
audio.play();
125
126
@@ -138,8 +138,8 @@ export async function checkNotifications(lastModified) {
138
/* eslint-enable camelcase */
139
140
141
- if (playNotifSound && notifications.length > 1) {
142
- await playNotificationSound();
+ if (playNotifSound && notifications.length > 0) {
+ playNotificationSound();
143
144
145
if (showDesktopNotif) {
0 commit comments