From 4d41b1b4df403ef864713822d6cc95ed6fb526dd Mon Sep 17 00:00:00 2001 From: Lorenzo Pichilli Date: Thu, 13 Oct 2022 15:49:09 +0200 Subject: [PATCH] Update JavaScriptBridgeJS.swift replaced js arrayBufferToString uint8Array.reduce arrow function with normal function --- ios/Classes/PluginScriptsJS/JavaScriptBridgeJS.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/Classes/PluginScriptsJS/JavaScriptBridgeJS.swift b/ios/Classes/PluginScriptsJS/JavaScriptBridgeJS.swift index 8f9aa385..3c65decc 100644 --- a/ios/Classes/PluginScriptsJS/JavaScriptBridgeJS.swift +++ b/ios/Classes/PluginScriptsJS/JavaScriptBridgeJS.swift @@ -176,7 +176,7 @@ let UTIL_JS_SOURCE = """ }, arrayBufferToString: function(arrayBuffer) { const uint8Array = new Uint8Array(arrayBuffer); - const data = uint8Array.reduce((acc, i) => acc += String.fromCharCode.apply(null, [i]), ''); + const data = uint8Array.reduce(function(acc, i) { return acc += String.fromCharCode.apply(null, [i]); }, ''); return data; }, isBodyFormData: function(bodyString) {