mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed empty search highlighting breaking site
This commit is contained in:
parent
db1c069e52
commit
15f74d81fd
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -211,7 +211,7 @@
|
|||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
<script src="{{ 'assets/javascripts/bundle.84d06bff.min.js' | url }}"></script>
|
<script src="{{ 'assets/javascripts/bundle.0885dc41.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 %}
|
||||||
|
@ -81,7 +81,7 @@ export function mountSearchHiglight(
|
|||||||
location$
|
location$
|
||||||
.pipe(
|
.pipe(
|
||||||
startWith(getLocation()),
|
startWith(getLocation()),
|
||||||
filter(url => url.searchParams.has("h"))
|
filter(url => !!url.searchParams.get("h"))
|
||||||
)
|
)
|
||||||
])
|
])
|
||||||
.pipe(
|
.pipe(
|
||||||
|
Loading…
Reference in New Issue
Block a user