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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user