()
| 1170 | } |
| 1171 | |
| 1172 | function startBindTaskAutoRefresh() { |
| 1173 | stopBindTaskAutoRefresh(); |
| 1174 | bindTaskAutoRefreshTimer = setInterval(() => { |
| 1175 | if (document.hidden) return; |
| 1176 | const bindTaskTab = document.getElementById("tab-content-bind-task"); |
| 1177 | if (!bindTaskTab?.classList.contains("active")) return; |
| 1178 | loadBindCardTasks(true); |
| 1179 | }, 20000); |
| 1180 | } |
| 1181 | |
| 1182 | function stopBindTaskAutoRefresh() { |
| 1183 | if (!bindTaskAutoRefreshTimer) return; |
no test coverage detected