Skip to content

Commit

Permalink
Merge pull request #359 from zusorio/focus-modal-fix
Browse files Browse the repository at this point in the history
fix: Fix an issue where Modal focus was broken during minification
  • Loading branch information
totaam authored Jan 21, 2025
2 parents 1ba6f11 + f716dde commit bec4576
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions html5/js/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -2087,8 +2087,7 @@ class XpraClient {
let modal = false;
if (MODAL_FOCUS) {
for (const index in this.id_to_window) {
const win = this.id_to_window[index];
modal = modal || win.metadata.modal;
modal = modal || this.id_to_window[index].metadata.modal;
}
}
if (modal && !win.metadata.modal) {
Expand Down

0 comments on commit bec4576

Please sign in to comment.