Skip to content

Commit

Permalink
Fixed empty search highlighting breaking site
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Nov 21, 2021
1 parent db1c069 commit 15f74d8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion material/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export function mountSearchHiglight(
location$
.pipe(
startWith(getLocation()),
filter(url => url.searchParams.has("h"))
filter(url => !!url.searchParams.get("h"))
)
])
.pipe(
Expand Down

0 comments on commit 15f74d8

Please sign in to comment.