Skip to content

Commit

Permalink
fix query params
Browse files Browse the repository at this point in the history
  • Loading branch information
SazukinPavel committed Jan 10, 2025
1 parent cd9d39e commit d006c8e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/www/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,12 @@ new Vue({
alert(err.message || err.toString());
} finally {
if (password || token) {
window.history.replaceState(null, null, "");
var newurl =
window.location.protocol +
"//" +
window.location.host +
window.location.pathname;
window.history.pushState({ path: newurl }, "", newurl);
}
}
}
Expand Down Expand Up @@ -440,6 +445,8 @@ new Vue({
}
if (theme) {
localStorage.setItem("theme", theme);
this.uiTheme = theme;
this.setTheme(theme);
}

this.tryAuth({ password, token });
Expand Down

0 comments on commit d006c8e

Please sign in to comment.