fix: added await for lang.build()

This commit is contained in:
Yurii
2026-02-13 11:21:17 +03:00
parent 3a6bb03456
commit 13e8bedf3f
6 changed files with 6 additions and 6 deletions

View File

@@ -201,7 +201,7 @@
<script>
document.addEventListener("DOMContentLoaded", async () => {
const lang = new Lang(document.getElementById("lang"));
lang.build();
await lang.build();
const container = document.querySelector("article");
const templateNode = container.querySelector("#template");