remove sound play
This commit is contained in:
parent
52ddb20d25
commit
90a17132c9
31
app/ui.js
31
app/ui.js
|
|
@ -1765,21 +1765,22 @@ const UI = {
|
||||||
},
|
},
|
||||||
|
|
||||||
bell(e) {
|
bell(e) {
|
||||||
if (UI.getSetting('bell') === 'on') {
|
return;
|
||||||
const promise = document.getElementById('noVNC_bell').play();
|
// if (UI.getSetting('bell') === 'on') {
|
||||||
// The standards disagree on the return value here
|
// const promise = document.getElementById('noVNC_bell').play();
|
||||||
if (promise) {
|
// // The standards disagree on the return value here
|
||||||
promise.catch((e) => {
|
// if (promise) {
|
||||||
if (e.name === "NotAllowedError") {
|
// promise.catch((e) => {
|
||||||
// Ignore when the browser doesn't let us play audio.
|
// if (e.name === "NotAllowedError") {
|
||||||
// It is common that the browsers require audio to be
|
// // Ignore when the browser doesn't let us play audio.
|
||||||
// initiated from a user action.
|
// // It is common that the browsers require audio to be
|
||||||
} else {
|
// // initiated from a user action.
|
||||||
Log.Error("Unable to play bell: " + e);
|
// } else {
|
||||||
}
|
// Log.Error("Unable to play bell: " + e);
|
||||||
});
|
// }
|
||||||
}
|
// });
|
||||||
}
|
// }
|
||||||
|
// }
|
||||||
},
|
},
|
||||||
|
|
||||||
//Helper to add options to dropdown.
|
//Helper to add options to dropdown.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue