Add notification sound upon match.
This commit is contained in:
parent
4594a31115
commit
e10e3f2016
2
gmcr.js
2
gmcr.js
|
@ -59,6 +59,8 @@ function captionUpdate() {
|
|||
if (matched && surroundingText !== lastNotification) {
|
||||
new Notification("Match found", {body: surroundingText});
|
||||
lastNotification = surroundingText;
|
||||
const audio = new Audio(browser.runtime.getURL("static/notif.mp3"));
|
||||
audio.play();
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
|
@ -27,6 +27,6 @@
|
|||
"matches": ["https://meet.google.com/*"],
|
||||
"js": ["gmcr.js"]
|
||||
}
|
||||
]
|
||||
|
||||
],
|
||||
"web_accessible_resources": ["static/*"]
|
||||
}
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue