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