mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2025-02-17 18:49:21 +01:00
Fixed linting
This commit is contained in:
parent
1fdc92ae29
commit
012cd24f06
@ -152,7 +152,7 @@ export function setupInstantLoading(
|
|||||||
|
|
||||||
instant$.subscribe(({ url, offset }) => {
|
instant$.subscribe(({ url, offset }) => {
|
||||||
if (url.hash && !offset) {
|
if (url.hash && !offset) {
|
||||||
console.log("set hash!")
|
// console.log("set hash!")
|
||||||
setLocationHash(url.hash) // must delay, if search is open!
|
setLocationHash(url.hash) // must delay, if search is open!
|
||||||
} else {
|
} else {
|
||||||
setViewportOffset(offset || { y: 0 })
|
setViewportOffset(offset || { y: 0 })
|
||||||
|
Loading…
x
Reference in New Issue
Block a user