Skip to content

Commit

Permalink
shell: Fix two bugs found by TypeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
mvollmer committed Dec 3, 2024
1 parent 0038714 commit 8b49506
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/shell/state.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 8b49506

Please sign in to comment.