mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed instant loading not correctly updating page title
This commit is contained in:
parent
3441834059
commit
87b706f19e
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
material/assets/javascripts/bundle.e0c867e5.min.js
vendored
Normal file
2
material/assets/javascripts/bundle.e0c867e5.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
material/assets/javascripts/bundle.e0c867e5.min.js.map
Normal file
1
material/assets/javascripts/bundle.e0c867e5.min.js.map
Normal file
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
||||
{
|
||||
"assets/javascripts/bundle.js": "assets/javascripts/bundle.4b42b5e6.min.js",
|
||||
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.4b42b5e6.min.js.map",
|
||||
"assets/javascripts/bundle.js": "assets/javascripts/bundle.e0c867e5.min.js",
|
||||
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.e0c867e5.min.js.map",
|
||||
"assets/javascripts/vendor.js": "assets/javascripts/vendor.a018d6bb.min.js",
|
||||
"assets/javascripts/vendor.js.map": "assets/javascripts/vendor.a018d6bb.min.js.map",
|
||||
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.4ac00218.min.js",
|
||||
|
@ -173,7 +173,7 @@
|
||||
</div>
|
||||
{% block scripts %}
|
||||
<script src="{{ 'assets/javascripts/vendor.a018d6bb.min.js' | url }}"></script>
|
||||
<script src="{{ 'assets/javascripts/bundle.4b42b5e6.min.js' | url }}"></script>
|
||||
<script src="{{ 'assets/javascripts/bundle.e0c867e5.min.js' | url }}"></script>
|
||||
{%- set translations = {} -%}
|
||||
{%- for key in [
|
||||
"clipboard.copy",
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user