From 43936a66629ffb5b81f68a88850022f8fe24f990 Mon Sep 17 00:00:00 2001 From: Astrid Date: Fri, 15 Sep 2023 13:49:57 +0200 Subject: [PATCH] restore --- app/ui.js | 2 ++ app/webutil.js | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/ui.js b/app/ui.js index 85695ca2..dede221a 100644 --- a/app/ui.js +++ b/app/ui.js @@ -1063,6 +1063,8 @@ const UI = { UI.rfb.showDotCursor = UI.getSetting('show_dot'); UI.updateViewOnly(); // requires UI.rfb + + history.replaceState(null, "", window.location.pathname.substring(1)); }, disconnect() { diff --git a/app/webutil.js b/app/webutil.js index 6a9349a0..6011442c 100644 --- a/app/webutil.js +++ b/app/webutil.js @@ -36,7 +36,6 @@ export function getQueryVar(name, defVal) { if (typeof defVal === 'undefined') { defVal = null; } if (match) { - history.replaceState(null, "", window.location.pathname.slice(1, 1)); return decodeURIComponent(match[1]); }