Skip to content

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
orange4glace committed Feb 12, 2021
1 parent 864fbe5 commit 8351e67
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Router.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,11 @@ export async function replace(location) {
const dest = (location.charAt(0) == '#' ? '' : '#') + location
try {
const newState = { ...history.state };
delete newState['__svelte_spa_router_scrollX'];
delete newState['__svelte_spa_router_scrollY'];
const newState = {
...history.state
}
delete newState['__svelte_spa_router_scrollX']
delete newState['__svelte_spa_router_scrollY']
window.history.replaceState(newState, undefined, dest)
}
catch (e) {
Expand Down

0 comments on commit 8351e67

Please sign in to comment.