1
0
mirror of https://github.com/morris/vanilla-todo.git synced 2025-08-21 21:25:25 +02:00

add dark mode

This commit is contained in:
Morris Brodersen
2024-12-29 14:27:21 +01:00
parent 044178a234
commit 93e0766bea
13 changed files with 95 additions and 45 deletions

View File

@@ -7,9 +7,11 @@ const cache = {};
* @param {HTMLElement} el
*/
export function AppIcon(el) {
if (el.children.length > 0) return;
if (el.dataset.lid === el.dataset.id) return;
const id = el.dataset.id;
el.dataset.lid = id;
let promise = cache[id];
if (!promise) {