mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-28 08:42:47 -04:00
Simplified content tabs implementation
This commit is contained in:
@@ -85,7 +85,7 @@ interface MountOptions {
|
||||
* @returns Header title observable
|
||||
*/
|
||||
export function watchHeaderTitle(
|
||||
el: HTMLHeadingElement, { viewport$, header$ }: WatchOptions
|
||||
el: HTMLElement, { viewport$, header$ }: WatchOptions
|
||||
): Observable<HeaderTitle> {
|
||||
return watchViewportAt(el, { viewport$, header$ })
|
||||
.pipe(
|
||||
@@ -123,7 +123,7 @@ export function mountHeaderTitle(
|
||||
})
|
||||
|
||||
/* Obtain headline, if any */
|
||||
const heading = getOptionalElement<HTMLHeadingElement>("article h1")
|
||||
const heading = getOptionalElement("article h1")
|
||||
if (typeof heading === "undefined")
|
||||
return EMPTY
|
||||
|
||||
|
||||
Reference in New Issue
Block a user