We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30b74ce commit 6737b04Copy full SHA for 6737b04
src/routes/+page.svelte
@@ -9,6 +9,7 @@
9
import { wait } from "$lib/util";
10
import { preloadImage } from "$lib/util/dom";
11
import LinkButton from "$lib/LinkButton.svelte";
12
+ import { removeUrlParams } from "$lib/util/string";
13
14
const api = new SongAPI();
15
let offlineFlag = false;
@@ -77,10 +78,7 @@
77
78
79
function reset() {
80
setStats(null);
-
81
- const urlSplit = window.location.href.split("?");
82
- const urlWithoutParams = urlSplit[0];
83
- window.history.pushState({}, document.title, urlWithoutParams);
+ window.history.pushState({}, document.title, removeUrlParams(window.location.href));
84
}
85
86
if(!import.meta.env.SSR) {
0 commit comments