From 4b0c7167278ade48f69517d68f1e22dc2bf687f2 Mon Sep 17 00:00:00 2001 From: Cats Juice Date: Wed, 23 Oct 2024 16:51:17 +0800 Subject: [PATCH] fix(core): add missing XMLHttpRequest.prototype --- core/native-bridge.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/core/native-bridge.ts b/core/native-bridge.ts index 4095f35e5..260ce483b 100644 --- a/core/native-bridge.ts +++ b/core/native-bridge.ts @@ -813,6 +813,7 @@ const initBridge = (w: any): void => { return xhr; } as unknown as PatchedXMLHttpRequestConstructor; + window.XMLHttpRequest.prototype = win.CapacitorWebXMLHttpRequest.prototype; Object.assign(window.XMLHttpRequest, win.CapacitorWebXMLHttpRequest.fullObject); } }