()
| 98 | }; |
| 99 | |
| 100 | export const getCurrentLifecycleState = (): string => { |
| 101 | if (wasActive) { |
| 102 | return ACTIVE; |
| 103 | } |
| 104 | return getInternalLifecycleState(); |
| 105 | }; |
| 106 | |
| 107 | export default function listenToLifecycleEvents(): void { |
| 108 | // Detect Safari to work around Safari-specific bugs. |
no test coverage detected