()
| 141 | }, between(BLINK_EVERY_MS)); |
| 142 | }; |
| 143 | const actionLoop = () => { |
| 144 | later(() => { |
| 145 | if (!isBusy && !prefersReducedMotion) { |
| 146 | play( |
| 147 | pickPatchyIdleAction(Math.random(), { |
| 148 | isReading: readingRef.current, |
| 149 | isEvening: new Date().getHours() >= 21, |
| 150 | }), |
| 151 | ); |
| 152 | } |
| 153 | actionLoop(); |
| 154 | }, between(ACTION_EVERY_MS)); |
| 155 | }; |
| 156 | blinkLoop(); |
| 157 | actionLoop(); |
| 158 |
no test coverage detected