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 265760f commit 44f8f17Copy full SHA for 44f8f17
packages/browser/src/integrations/trycatch.ts
@@ -98,10 +98,10 @@ export class TryCatch implements Integration {
98
fill(XMLHttpRequest.prototype, 'send', this._wrapXHR.bind(this));
99
}
100
101
- // if (this._options.eventTarget) {
102
- // const eventTarget = Array.isArray(this._options.eventTarget) ? this._options.eventTarget : DEFAULT_EVENT_TARGET;
103
- // eventTarget.forEach(this._wrapEventTarget.bind(this));
104
- // }
+ if (this._options.eventTarget) {
+ const eventTarget = Array.isArray(this._options.eventTarget) ? this._options.eventTarget : DEFAULT_EVENT_TARGET;
+ eventTarget.forEach(this._wrapEventTarget.bind(this));
+ }
105
106
107
/** JSDoc */
0 commit comments