Formatting

This commit is contained in:
squidfunk 2021-03-12 15:15:41 +01:00
parent fe9a86cb41
commit 393e05cc0a
4 changed files with 8 additions and 10 deletions

View File

@ -217,7 +217,7 @@
</script>
{% endblock %}
{% block scripts %}
<script src="{{ 'assets/javascripts/bundle.16f9b99f.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.9b55be7b.min.js' | url }}"></script>
{% for path in config["extra_javascript"] %}
<script src="{{ path | url }}"></script>
{% endfor %}

View File

@ -161,11 +161,9 @@ export function watchTableOfContents(
}, new Map<HTMLAnchorElement[], number>())
}),
/* Sort index by vertical offset */
map(index => (
new Map<HTMLAnchorElement[], number>(
[...index].sort(([, offsetA], [, offsetB]) => offsetA - offsetB)
)
/* Sort index by vertical offset (see https://bit.ly/30z6QSO) */
map(index => new Map([...index]
.sort(([, a], [, b]) => a - b)
)),
/* Re-compute partition when viewport offset changes */