feat: allow to use 0 as auto refresh interval with special meaning (#148)

This commit is contained in:
arcanis committed 2025-07-01 03:37:49 +03:00
1 parent 256376df85
commit 390b9da29e
4 files changed
+7 -3

No files matched your search

@@ -154,6 +154,8 @@
// finally create timer task
return setInterval(callback, interval);
}
} else {
toggle.checked = false; // no active interval found, disable toggle
}
return null; // return null to assign to keep method sane