diff --git a/app/ui.js b/app/ui.js index 4c4bedf7..194fefdf 100644 --- a/app/ui.js +++ b/app/ui.js @@ -1681,7 +1681,16 @@ const UI = { bell: function(rfb) { if (WebUtil.getConfigVar('bell', 'on') === 'on') { - document.getElementById('noVNC_bell').play(); + document.getElementById('noVNC_bell').play() + .catch(function(e) { + if (e.name === "NotAllowedError") { + // Ignore when the browser doesn't let us play audio. + // It is common that the browsers require audio to be + // initiated from a user action. + } else { + Log.Error("Unable to play bell: " + e); + } + }); } },