Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sravan-abacus committed Dec 12, 2024
1 parent 45f493b commit 367748a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ const UI = {
UI.initSetting('quality', 6);
UI.initSetting('compression', 2);
UI.initSetting('shared', true);
UI.initSetting('bell', 'off');
UI.initSetting('bell', 'on');
UI.initSetting('view_only', false);
UI.initSetting('show_dot', false);
UI.initSetting('path', 'websockify');
Expand Down Expand Up @@ -526,6 +526,7 @@ const UI = {
},

activateControlbar(event) {
return;
clearTimeout(UI.idleControlbarTimeout);
// We manipulate the anchor instead of the actual control
// bar in order to avoid creating new a stacking group
Expand All @@ -535,6 +536,7 @@ const UI = {
},

idleControlbar() {
return;
// Don't fade if a child of the control bar has focus
if (document.getElementById('noVNC_control_bar')
.contains(document.activeElement) && document.hasFocus()) {
Expand Down Expand Up @@ -1765,6 +1767,7 @@ const UI = {
},

bell(e) {
return;
if (UI.getSetting('bell') === 'on') {
const promise = document.getElementById('noVNC_bell').play();
// The standards disagree on the return value here
Expand Down

0 comments on commit 367748a

Please sign in to comment.