mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Revert "Fixed instant loading not triggering when going back to initial page"
This reverts commit 329d26d34a
.
This commit is contained in:
parent
f00cd81f89
commit
3f1ad39c64
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -240,7 +240,7 @@
|
|||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
<script src="{{ 'assets/javascripts/bundle.56494524.min.js' | url }}"></script>
|
<script src="{{ 'assets/javascripts/bundle.4b2c34cd.min.js' | url }}"></script>
|
||||||
{% for path in config.extra_javascript %}
|
{% for path in config.extra_javascript %}
|
||||||
<script src="{{ path | url }}"></script>
|
<script src="{{ path | url }}"></script>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -170,9 +170,10 @@ export function setupInstantLoading(
|
|||||||
/* Intercept history back and forward */
|
/* Intercept history back and forward */
|
||||||
const pop$ = fromEvent<PopStateEvent>(window, "popstate")
|
const pop$ = fromEvent<PopStateEvent>(window, "popstate")
|
||||||
.pipe(
|
.pipe(
|
||||||
|
filter(ev => ev.state !== null),
|
||||||
map(ev => ({
|
map(ev => ({
|
||||||
url: new URL(location.href),
|
url: new URL(location.href),
|
||||||
offset: ev.state ?? {}
|
offset: ev.state
|
||||||
})),
|
})),
|
||||||
share<HistoryState>()
|
share<HistoryState>()
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user