Browse Source

add workaround to be able to play sound notifications on Firefox

readme-update
Simon Grim 9 years ago
parent
commit
68fe2b0174
  1. 7
      js/interface_common.js

7
js/interface_common.js

@ -2333,4 +2333,11 @@ $(document).ready(function () { @@ -2333,4 +2333,11 @@ $(document).ready(function () {
}
changeStyle();
// need to play something once in result of click on Firefox to be able to play sound notifications
// FXIME it's just workaround of FF's bug, see https://bugzilla.mozilla.org/show_bug.cgi?id=1197631
$('body').on('click', function () {
playSound('player', $.Options.sndMention.val, 0.001);
setTimeout(function () {$('body').off('click');}, 10000); // sound must be played before unbinding
});
});

Loading…
Cancel
Save