()
| 198 | void buffer.flush(true); |
| 199 | }; |
| 200 | const onVisibility = (): void => { |
| 201 | if (target.document.visibilityState === 'hidden') { |
| 202 | void buffer.flush(true); |
| 203 | } |
| 204 | }; |
| 205 | const stopObserving = observeErrors((report) => { |
| 206 | guarded(() => { |
| 207 | buffer.record(report.level, report.source, report.message, { |