자동 위치 갱신 명령 반복 제한

This commit is contained in:
seo
2026-07-13 22:11:15 +09:00
parent d62daef0cb
commit 5e8b037d99
3 changed files with 67 additions and 4 deletions
+2 -1
View File
@@ -1101,7 +1101,8 @@ document.getElementById('autoUpdateSwitch').addEventListener('change', () => {
setInterval(() => {
if (!findmydeviceAuthenticated) return;
if (document.getElementById('autoUpdateSwitch')?.checked || highAccuracyModeActive) {
const switchEl = document.getElementById('autoUpdateSwitch');
if (switchEl?.checked && !switchEl.disabled) {
callDeviceWebhook('auto_tick');
}
}, 5000);