From 620f8d8c5fc7eda49b91880ec8985940aa41ce81 Mon Sep 17 00:00:00 2001 From: AyaMahmoud148 Date: Fri, 14 Nov 2025 17:22:38 +0200 Subject: [PATCH] snapshot: v16.0.3-INSD-14348 --- src/modules/Instabug.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/modules/Instabug.ts b/src/modules/Instabug.ts index 8bf40e711..dbf6de8f9 100644 --- a/src/modules/Instabug.ts +++ b/src/modules/Instabug.ts @@ -81,6 +81,18 @@ function reportCurrentViewForAndroid(screenName: string | null) { * @param config SDK configurations. See {@link InstabugConfig} for more info. */ export const init = (config: InstabugConfig) => { + const equalsOriginal = + typeof (global as any).originalXMLHttpRequest !== 'undefined' && + XMLHttpRequest === (global as any).originalXMLHttpRequest; + console.log('[Debug] init equals original XMLHttpRequest:', equalsOriginal); + + setTimeout(() => { + const equalsOriginalLater = + typeof (global as any).originalXMLHttpRequest !== 'undefined' && + XMLHttpRequest === (global as any).originalXMLHttpRequest; + console.log('[Debug] post-init equals original XMLHttpRequest:', equalsOriginalLater); + }, 5000); + if (Platform.OS === 'android') { // Add android feature flags listener for android registerFeatureFlagsListener();