Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit d5b3046

Browse files
author
Je
committed
fix: fix hashAnchorScroll
1 parent 9038e7e commit d5b3046

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

aleph.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,7 @@ export function ALEPH({ initial }: {
176176

177177
useEffect(() => {
178178
const win = window as any
179-
const { location, document, scrollX, scrollY, ALEPH } = win
180-
const { hashAnchorScroll } = ALEPH
179+
const { location, document, scrollX, scrollY, hashAnchorScroll } = win
181180
if (location.hash) {
182181
const anchor = document.getElementById(location.hash.slice(1))
183182
if (anchor) {

0 commit comments

Comments
 (0)