diff --git a/gmcr.js b/gmcr.js index 7f0bfe4..74e3aeb 100644 --- a/gmcr.js +++ b/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(); } }) } diff --git a/manifest.json b/manifest.json index de9d236..9db4fc0 100644 --- a/manifest.json +++ b/manifest.json @@ -27,6 +27,6 @@ "matches": ["https://meet.google.com/*"], "js": ["gmcr.js"] } - ] - + ], + "web_accessible_resources": ["static/*"] } diff --git a/static/notif.mp3 b/static/notif.mp3 new file mode 100644 index 0000000..256589d Binary files /dev/null and b/static/notif.mp3 differ