8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4841625 commit 3fcd6d8Copy full SHA for 3fcd6d8
packages/browser/src/transports/base.ts
@@ -42,7 +42,7 @@ export abstract class BaseTransport implements Transport {
42
// eslint-disable-next-line deprecation/deprecation
43
this.url = this._api.getStoreEndpointWithUrlEncodedAuth();
44
45
- if (this.options.sendClientReports) {
+ if (this.options.sendClientReports && document) {
46
document.addEventListener('visibilitychange', () => {
47
if (document.visibilityState === 'hidden') {
48
this._flushOutcomes();
0 commit comments