Fixed empty search highlighting breaking site

This commit is contained in:
squidfunk 2021-11-21 20:08:09 +01:00
parent db1c069e52
commit 15f74d81fd
4 changed files with 6 additions and 6 deletions

View File

@ -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 %}

View File

@ -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(