From 8b49506527d57557a4c125e0578a674ddafea808 Mon Sep 17 00:00:00 2001 From: Marius Vollmer Date: Wed, 27 Nov 2024 13:13:59 +0200 Subject: [PATCH] shell: Fix two bugs found by TypeScript --- pkg/shell/state.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/shell/state.tsx b/pkg/shell/state.tsx index eefa45f7f124..4111d2998264 100644 --- a/pkg/shell/state.tsx +++ b/pkg/shell/state.tsx @@ -52,7 +52,7 @@ export function ShellState() { /* Should show warning before connecting? */ let config_ready = false; cockpit.dbus(null, { bus: "internal" }).call("/config", "cockpit.Config", "GetString", - ["Session", "WarnBeforeConnecting"], []) + ["Session", "WarnBeforeConnecting"], {}) .then(([result]) => { if (result == "false" || result == "no") { window.sessionStorage.setItem("connection-warning-shown", "yes"); @@ -425,7 +425,7 @@ export function ShellState() { } if (location.host !== current.host || - location.path !== current.pathframe_change || + location.path !== current.path || location.hash !== current.hash) { push_window_location(location); update();