Skip to content

Commit

Permalink
Merge pull request #18993 from storybookjs/jonathankolnik/patch-ie-in…
Browse files Browse the repository at this point in the history
…teractions-bug

Addon-interactions: Fix IE support by replacing array includes
  • Loading branch information
shilman committed Aug 23, 2022
2 parents acef373 + 87a5534 commit 962e9a7
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 962e9a7

Please sign in to comment.