Skip to content

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
mateothegreat committed Nov 27, 2024
1 parent 4a593d3 commit 81d0641
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ export const goto = (path: string, searchParams?: Record<string, string>) => {
url.searchParams.set(key, value);
});
}
window.history.pushState({}, "", url.toString());
console.log(`${window.location.origin}/${url.toString()}`);
window.history.replaceState({}, "", `${window.location.origin}/${url.toString()}`);
};

export const query = (key: string): string | null => {
Expand Down

0 comments on commit 81d0641

Please sign in to comment.