mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed invalid local address when using instant loading
This commit is contained in:
parent
9a7a185f9d
commit
87d69a95b8
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -249,7 +249,7 @@
|
|||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
<script src="{{ 'assets/javascripts/bundle.a1c919d2.min.js' | url }}"></script>
|
<script src="{{ 'assets/javascripts/bundle.81fa17fe.min.js' | url }}"></script>
|
||||||
{% for script in config.extra_javascript %}
|
{% for script in config.extra_javascript %}
|
||||||
{{ script | script_tag }}
|
{{ script | script_tag }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -90,7 +90,7 @@ function lookup(head: HTMLHeadElement): Map<string, HTMLElement> {
|
|||||||
// but for now we just rely on canonical.
|
// but for now we just rely on canonical.
|
||||||
const canonical = getOptionalElement<HTMLLinkElement>("[rel=canonical]", head)
|
const canonical = getOptionalElement<HTMLLinkElement>("[rel=canonical]", head)
|
||||||
if (typeof canonical !== "undefined")
|
if (typeof canonical !== "undefined")
|
||||||
canonical.href = canonical.href.replace("//localhost:", "//127.0.0.1")
|
canonical.href = canonical.href.replace("//localhost:", "//127.0.0.1:")
|
||||||
|
|
||||||
// Create tag map and index elements in head
|
// Create tag map and index elements in head
|
||||||
const tags = new Map<string, HTMLElement>()
|
const tags = new Map<string, HTMLElement>()
|
||||||
|
Loading…
Reference in New Issue
Block a user