Skip to content

Commit 7e313d5

Browse files
committed
format
1 parent 84d1ca7 commit 7e313d5

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
@@ -2505,7 +2505,9 @@ function _start_router() {
25052505
if (history_index === current_history_index) return;
25062506

25072507
const scroll = scroll_positions[history_index];
2508-
const state = event.state[STATES_KEY] ? unstringify(event.state[STATES_KEY], app.hooks.transport) : {};
2508+
const state = event.state[STATES_KEY]
2509+
? unstringify(event.state[STATES_KEY], app.hooks.transport)
2510+
: {};
25092511
const url = new URL(event.state[PAGE_URL_KEY] ?? location.href);
25102512
const navigation_index = event.state[NAVIGATION_INDEX];
25112513
const is_hash_change = current.url ? strip_hash(location) === strip_hash(current.url) : false;

0 commit comments

Comments
 (0)