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>
|
||||
{% endblock %}
|
||||
{% 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"] %}
|
||||
<script src="{{ path | url }}"></script>
|
||||
{% endfor %}
|
||||
|
@ -81,7 +81,7 @@ export function mountSearchHiglight(
|
||||
location$
|
||||
.pipe(
|
||||
startWith(getLocation()),
|
||||
filter(url => url.searchParams.has("h"))
|
||||
filter(url => !!url.searchParams.get("h"))
|
||||
)
|
||||
])
|
||||
.pipe(
|
||||
|
Loading…
Reference in New Issue
Block a user