자동 위치 갱신 명령 반복 제한
This commit is contained in:
1 parent
d62daef0cb
commit
5e8b037d99
3 files changed
+67
-4
No files matched your search
+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