mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed linting
This commit is contained in:
@@ -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 })
|
||||||
|
|||||||
Reference in New Issue
Block a user