Fixed linter errors

This commit is contained in:
squidfunk 2022-10-16 17:16:10 +07:00
parent b0afb7f1df
commit 2b08c42c09
6 changed files with 9 additions and 9 deletions

View File

@ -213,7 +213,7 @@
"base": base_url,
"features": features,
"translations": {},
"search": "assets/javascripts/workers/search.5bf1dace.min.js" | url
"search": "assets/javascripts/workers/search.16e2a7d4.min.js" | url
} -%}
{%- if config.extra.version -%}
{%- set _ = app.update({ "version": config.extra.version }) -%}
@ -245,7 +245,7 @@
</script>
{% endblock %}
{% block scripts %}
<script src="{{ 'assets/javascripts/bundle.6079f66d.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.8492ddcf.min.js' | url }}"></script>
{% for path in config.extra_javascript %}
<script src="{{ path | url }}"></script>
{% endfor %}

View File

@ -80,7 +80,7 @@ if (typeof Element !== "undefined") {
/* Replace children and create text nodes */
for (let i = nodes.length - 1; i >= 0; i--) {
let node = nodes[i]
if (typeof node !== "object")
if (typeof node === "string")
node = document.createTextNode(node)
else if (node.parentNode)
node.parentNode.removeChild(node)