()
| 150 | } |
| 151 | |
| 152 | export function stopCoreCacheSync() { |
| 153 | active = false; |
| 154 | if (idleHandle !== null) { |
| 155 | if ("cancelIdleCallback" in window) { |
| 156 | window.cancelIdleCallback(idleHandle); |
| 157 | } else { |
| 158 | window.clearTimeout(idleHandle); |
| 159 | } |
| 160 | idleHandle = null; |
| 161 | } |
| 162 | if (syncTimer !== null) { |
| 163 | window.clearInterval(syncTimer); |
| 164 | syncTimer = null; |
| 165 | } |
| 166 | window.removeEventListener("online", scheduleSync); |
| 167 | window.removeEventListener(CACHE_CLEARED_EVENT, stopCoreCacheSync); |
| 168 | } |
nothing calls this directly
no outgoing calls
no test coverage detected