summaryrefslogtreecommitdiff
path: root/web/share/js/kvm/main.js
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-10-16 23:51:27 +0300
committerMaxim Devaev <[email protected]>2022-10-16 23:51:27 +0300
commite5ed253d680b7831ce3a3b2603971620cf5eb644 (patch)
treea794e16a95c48d8b1a9a6028e067ebb1e128df1f /web/share/js/kvm/main.js
parent5d54b32ab603ba010125564bf550585a7348c390 (diff)
fixed browser detection, loading css from js
Diffstat (limited to 'web/share/js/kvm/main.js')
-rw-r--r--web/share/js/kvm/main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/share/js/kvm/main.js b/web/share/js/kvm/main.js
index 3717f71d..6417da37 100644
--- a/web/share/js/kvm/main.js
+++ b/web/share/js/kvm/main.js
@@ -31,7 +31,7 @@ import {Session} from "./session.js";
export function main() {
- if (checkBrowser()) {
+ if (checkBrowser(null, "/share/css/kvm/x-mobile.css")) {
tools.storage.bindSimpleSwitch($("page-close-ask-switch"), "page.close.ask", true, function(value) {
if (value) {
window.onbeforeunload = function(event) {