summaryrefslogtreecommitdiff
path: root/web/js/ui.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/js/ui.js')
-rw-r--r--web/js/ui.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/web/js/ui.js b/web/js/ui.js
index ff19cf25..2b41e0b1 100644
--- a/web/js/ui.js
+++ b/web/js/ui.js
@@ -292,7 +292,9 @@ function Ui() {
max_z_index = z_index;
}
});
- __raiseWindow(last_el_window);
+ if (last_el_window) {
+ __raiseWindow(last_el_window);
+ }
};
var __raiseWindow = function(el_window) {