Skip to content

Commit

Permalink
fix assert
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Oct 15, 2024
1 parent 9ddbdc3 commit 10d1209
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function onBrowserHistoryNavigation() {
// - Practice: https://stackoverflow.com/questions/70188241/history-scrollrestoration-manual-doesnt-prevent-safari-from-restoring-scrol
if (isHashNavigation && !isUserLandPushStateNavigation) {
if (!isHashNavigationNew) {
assert(scrollTarget)
assert(scrollTarget !== undefined)
setScrollPosition(scrollTarget)
}
return
Expand Down

0 comments on commit 10d1209

Please sign in to comment.