Skip to content

Commit f9ec267

Browse files
committed
format
1 parent 8b6426c commit f9ec267

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/kit/src/runtime/client/client.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2552,7 +2552,9 @@ function _start_router() {
25522552
if (history_index === current_history_index) return;
25532553

25542554
const scroll = scroll_positions[history_index];
2555-
const state = event.state[STATES_KEY] ? unstringify(event.state[STATES_KEY], app.hooks.transport) : {};
2555+
const state = event.state[STATES_KEY]
2556+
? unstringify(event.state[STATES_KEY], app.hooks.transport)
2557+
: {};
25562558
const url = new URL(event.state[PAGE_URL_KEY] ?? location.href);
25572559
const navigation_index = event.state[NAVIGATION_INDEX];
25582560
const is_hash_change = current.url ? strip_hash(location) === strip_hash(current.url) : false;

0 commit comments

Comments
 (0)