()
| 176 | window.addEventListener('focus', onFocus, true); |
| 177 | |
| 178 | let cleanup = () => { |
| 179 | cancelAnimationFrame(raf); |
| 180 | window.removeEventListener('blur', onBlur, true); |
| 181 | window.removeEventListener('focusout', onFocusOut, true); |
| 182 | window.removeEventListener('focusin', onFocusIn, true); |
| 183 | window.removeEventListener('focus', onFocus, true); |
| 184 | ignoreFocusEvent = false; |
| 185 | isRefocusing = false; |
| 186 | }; |
| 187 | |
| 188 | let raf = requestAnimationFrame(cleanup); |
| 189 | return cleanup; |
no test coverage detected