mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-28 08:42:47 -04:00
Refactored project structure
This commit is contained in:
@@ -40,7 +40,10 @@ import {
|
||||
} from "rxjs"
|
||||
|
||||
import { feature } from "~/_"
|
||||
import { resetHeaderState, setHeaderState } from "~/actions"
|
||||
import {
|
||||
resetHeaderState,
|
||||
setHeaderState
|
||||
} from "~/actions"
|
||||
import {
|
||||
Viewport,
|
||||
watchElementSize,
|
||||
|
||||
@@ -38,8 +38,8 @@ import {
|
||||
} from "~/actions"
|
||||
import {
|
||||
Viewport,
|
||||
getElement,
|
||||
getElementSize,
|
||||
getOptionalElement,
|
||||
watchViewportAt
|
||||
} from "~/browser"
|
||||
|
||||
@@ -131,7 +131,7 @@ export function mountHeaderTitle(
|
||||
})
|
||||
|
||||
/* Obtain headline, if any */
|
||||
const headline = getElement<HTMLHeadingElement>("article h1")
|
||||
const headline = getOptionalElement<HTMLHeadingElement>("article h1")
|
||||
if (typeof headline === "undefined")
|
||||
return NEVER
|
||||
|
||||
|
||||
Reference in New Issue
Block a user