From 90a17132c9742d07e2d3c8cabc886b32e60dd699 Mon Sep 17 00:00:00 2001 From: Sravan Date: Fri, 13 Dec 2024 11:33:02 +0530 Subject: [PATCH] remove sound play --- app/ui.js | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/app/ui.js b/app/ui.js index fd23c8007..2be29f176 100644 --- a/app/ui.js +++ b/app/ui.js @@ -1765,21 +1765,22 @@ const UI = { }, bell(e) { - if (UI.getSetting('bell') === 'on') { - const promise = document.getElementById('noVNC_bell').play(); - // The standards disagree on the return value here - if (promise) { - promise.catch((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); - } - }); - } - } + return; + // if (UI.getSetting('bell') === 'on') { + // const promise = document.getElementById('noVNC_bell').play(); + // // The standards disagree on the return value here + // if (promise) { + // promise.catch((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); + // } + // }); + // } + // } }, //Helper to add options to dropdown.