From 87a5534d255e33b9a72f42a40e067e6e94f397bb Mon Sep 17 00:00:00 2001 From: Jono Kolnik <1164060+JonathanKolnik@users.noreply.github.com> Date: Tue, 23 Aug 2022 17:19:37 +0200 Subject: [PATCH] fix interactions bug because .includes isn't supported in IE --- lib/instrumenter/src/instrumenter.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/instrumenter/src/instrumenter.ts b/lib/instrumenter/src/instrumenter.ts index 7a841bf678f2..34f2011c7d7f 100644 --- a/lib/instrumenter/src/instrumenter.ts +++ b/lib/instrumenter/src/instrumenter.ts @@ -546,9 +546,9 @@ export function instrument>( 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; }