Skip to content

Commit

Permalink
lib: allow cockpit.location to be modified
Browse files Browse the repository at this point in the history
Our Location API allows changing the location by assigning a string to
it.
  • Loading branch information
jelly authored and martinpitt committed Dec 6, 2024
1 parent 54a0e66 commit 2417e6d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/lib/cockpit.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ declare module 'cockpit' {
decode(string: string, options?: { [key: string]: string }): string[];
}

export const location: Location;
export let location: Location;

/* === cockpit.jump ========================== */

Expand Down
1 change: 0 additions & 1 deletion test/common/typecheck
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ javascript_ignored_codes = [
"TS2349", # This expression is not callable.
"TS2554", # Expected 0 arguments, but got 1.
"TS2810", # Expected 1 argument, but got 0.
"TS2540", # Cannot assign to 'location' because it is a read-only property.
]


Expand Down

0 comments on commit 2417e6d

Please sign in to comment.