Skip to content

Commit

Permalink
fix interactions bug because .includes isn't supported in IE
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanKolnik committed Aug 23, 2022
1 parent acef373 commit 87a5534
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/instrumenter/src/instrumenter.ts
Expand Up @@ -546,9 +546,9 @@ export function instrument<TObj extends Record<string, any>>(
let forceInstrument = false;
let skipInstrument = false;

if (global.window.location?.search?.includes('instrument=true')) {
if (global.window.location?.search?.indexOf('instrument=true') !== -1) {
forceInstrument = true;
} else if (global.window.location?.search?.includes('instrument=false')) {
} else if (global.window.location?.search?.indexOf('instrument=false') !== -1) {
skipInstrument = true;
}

Expand Down

0 comments on commit 87a5534

Please sign in to comment.