1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-14 19:07:41 +01:00

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

View File

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