Skip to content

Commit 913e9b0

Browse files
committed
Remove includes in favor or indexOf for IE support
1 parent 236f8d7 commit 913e9b0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/apm/src/integrations/tracing.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ export class Tracing implements Integration {
628628
resource.startTimestamp = timeOrigin + startTime;
629629
resource.endTimestamp = resource.startTimestamp + duration;
630630
// We remember the entry script end time to calculate the difference to the first init mark
631-
if (entryScriptStartEndTime === undefined && (entryScriptSrc || '').includes(resourceName)) {
631+
if (entryScriptStartEndTime === undefined && (entryScriptSrc || '').indexOf(resourceName) > -1) {
632632
entryScriptStartEndTime = resource.endTimestamp;
633633
}
634634
}

packages/integrations/src/vue.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ export class Vue implements Integration {
250250
const childHandler = (hook: Hook, operation: Operation) => {
251251
// Skip components that we don't want to track to minimize the noise and give a more granular control to the user
252252
const shouldTrack = Array.isArray(this._options.tracingOptions.trackComponents)
253-
? this._options.tracingOptions.trackComponents.includes(name)
253+
? this._options.tracingOptions.trackComponents.indexOf(name) > -1
254254
: this._options.tracingOptions.trackComponents;
255255

256256
if (!this._rootSpan || !shouldTrack) {

0 commit comments

Comments
 (0)