mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-30 01:32:39 -04:00
Fixed instant loading not correctly updating page title
This commit is contained in:
@@ -32,8 +32,7 @@ import {
|
||||
sample,
|
||||
share,
|
||||
skip,
|
||||
switchMap,
|
||||
withLatestFrom
|
||||
switchMap
|
||||
} from "rxjs/operators"
|
||||
|
||||
import {
|
||||
@@ -221,11 +220,11 @@ export function setupInstantLoading(
|
||||
})
|
||||
|
||||
/* Replace document metadata */
|
||||
instant$
|
||||
document$
|
||||
.pipe(
|
||||
withLatestFrom(document$)
|
||||
skip(1) // Skip initial
|
||||
)
|
||||
.subscribe(([, { title, head }]) => {
|
||||
.subscribe(({ title, head }) => {
|
||||
document.title = title
|
||||
|
||||
/* Replace meta tags */
|
||||
|
||||
Reference in New Issue
Block a user