Update page.js

This commit is contained in:
Svilen Markov
2025-06-10 07:11:25 +01:00
parent d103c81df1
commit 808f3c1436

View File

@@ -643,7 +643,7 @@ async function setupCalendars() {
} }
async function setupTodos() { async function setupTodos() {
var elems = Array.prototype.slice.call(document.getElementsByClassName("todo")); const elems = Array.from(document.getElementsByClassName("todo"));
if (elems.length == 0) return; if (elems.length == 0) return;
const todo = await import ('./todo.js'); const todo = await import ('./todo.js');