main.js: fix undefined version

This commit is contained in:
Zankaria 2024-08-24 01:53:44 +02:00
parent 4029ec5ba4
commit 8b5b710cc1

View file

@ -198,6 +198,8 @@ function changeStyle(styleName, link) {
{% endraw %} {% endraw %}
var resourceVersion = document.currentScript.getAttribute('data-resource-version');
{% if config.stylesheets_board %} {% if config.stylesheets_board %}
{% raw %} {% raw %}
@ -578,7 +580,6 @@ function ready() {
var post_date = "{{ config.post_date }}"; var post_date = "{{ config.post_date }}";
var max_images = {{ config.max_images }}; var max_images = {{ config.max_images }};
var resourceVersion = document.currentScript.getAttribute('data-resource-version');
onReady(init); onReady(init);