Bug 1113723: play a sound when someone joins a room. r=MattN a=lsblakk
--- a/browser/base/content/browser-loop.js
+++ b/browser/base/content/browser-loop.js
@@ -232,18 +232,19 @@ XPCOMUtils.defineLazyModuleGetter(this,
body: options.message || ""
};
if (options.icon) {
notificationOptions.icon = options.icon;
}
if (options.sound) {
// This will not do anything, until bug bug 1105222 is resolved.
notificationOptions.mozbehavior = {
- soundFile: `chrome://browser/content/loop/shared/sounds/${options.sound}.ogg`
+ soundFile: ""
};
+ this.playSound(options.sound);
}
let notification = new window.Notification(options.title, notificationOptions);
notification.addEventListener("click", e => {
if (window.closed) {
return;
}