fix: API URL cannot be changed

Closes #243
This commit is contained in:
Ushie
2024-07-11 02:05:08 +03:00
parent a5825b0bb7
commit 5c85934638

View File

@@ -16,19 +16,23 @@
const client = useQueryClient();
function reload() {
location.reload();
}
function clear_and_reload() {
client.clear();
// `client.clear()` does technically do this for us, but it takes a while.
localStorage.clear();
location.reload();
reload();
}
let url = settings.api_base_url();
function save() {
settings.set_api_base_url(url);
clear_and_reload();
reload();
}
function reset() {