From 8351e670a529a15b6ffc4e5649ab5981eddde2b1 Mon Sep 17 00:00:00 2001 From: orange4glace Date: Fri, 12 Feb 2021 18:27:02 +0900 Subject: [PATCH] fix: linting --- Router.svelte | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Router.svelte b/Router.svelte index 3018b74..5440afa 100644 --- a/Router.svelte +++ b/Router.svelte @@ -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) {