Browse Source

add check if no mention sound is set in Firefox sound notification workaround

readme-update
Simon Grim 6 years ago
parent
commit
87e484291c
  1. 1
      js/interface_common.js

1
js/interface_common.js

@ -3083,6 +3083,7 @@ $(function () {
// need to play something once in result of click on Firefox to be able to play sound notifications // 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 // FXIME it's just workaround of FF's bug, see https://bugzilla.mozilla.org/show_bug.cgi?id=1197631
$('body').on('click', function () { $('body').on('click', function () {
if ($.Options.sndMention.val !== 'false')
playSound('player', $.Options.sndMention.val, 0.001); playSound('player', $.Options.sndMention.val, 0.001);
setTimeout(function () {$('body').off('click');}, 10000); // sound must be played before unbinding setTimeout(function () {$('body').off('click');}, 10000); // sound must be played before unbinding
}); });

Loading…
Cancel
Save