mirror of
https://github.com/glanceapp/glance.git
synced 2025-06-21 02:18:22 +02:00
setupTodos using incorrect logic and skipping to-do item.
This commit is contained in:
parent
e52374fa24
commit
5a093f42b0
@ -643,13 +643,14 @@ async function setupCalendars() {
|
||||
}
|
||||
|
||||
async function setupTodos() {
|
||||
const elems = document.getElementsByClassName("todo");
|
||||
var elems = Array.prototype.slice.call(document.getElementsByClassName("todo"));
|
||||
if (elems.length == 0) return;
|
||||
|
||||
const todo = await import ('./todo.js');
|
||||
|
||||
for (let i = 0; i < elems.length; i++)
|
||||
for (let i = 0; i < elems.length; i++){
|
||||
todo.default(elems[i]);
|
||||
}
|
||||
}
|
||||
|
||||
function setupTruncatedElementTitles() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user