Skip to content

Commit 5c85934

Browse files
committed
fix: API URL cannot be changed
Closes #243
1 parent a5825b0 commit 5c85934

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/layout/Navbar/NavHost.svelte

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,23 @@
1616
1717
const client = useQueryClient();
1818
19+
function reload() {
20+
location.reload();
21+
}
22+
1923
function clear_and_reload() {
2024
client.clear();
2125
// `client.clear()` does technically do this for us, but it takes a while.
2226
localStorage.clear();
2327
24-
location.reload();
28+
reload();
2529
}
2630
2731
let url = settings.api_base_url();
2832
2933
function save() {
3034
settings.set_api_base_url(url);
31-
clear_and_reload();
35+
reload();
3236
}
3337
3438
function reset() {

0 commit comments

Comments
 (0)