mirror of
https://github.com/khairul169/honey.git
synced 2026-10-05 02:13:55 +07:00
Settings: Fire all events on page load
This commit is contained in:
@@ -27,7 +27,8 @@ export function addOnOffTile(conf, icon, name, desc, key, func) {
|
||||
if (func) item.addEventListener("click", f)
|
||||
|
||||
handleState()
|
||||
if (func && conf.changed(key)) f()
|
||||
if (func) f()
|
||||
|
||||
document.getElementById("settings").appendChild(item)
|
||||
return item
|
||||
}
|
||||
Reference in New Issue
Block a user