자동 위치 갱신 명령 반복 제한
This commit is contained in:
+2
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user