From 0f9896aedf5fd36ac7b2ebae21e89da1fad74bdd Mon Sep 17 00:00:00 2001 From: Lorenzo Pichilli Date: Thu, 13 Oct 2022 15:48:04 +0200 Subject: [PATCH] Update JavaScriptBridgeJS.java replaced js arrayBufferToString uint8Array.reduce arrow function with normal function --- .../plugin_scripts_js/JavaScriptBridgeJS.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/plugin_scripts_js/JavaScriptBridgeJS.java b/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/plugin_scripts_js/JavaScriptBridgeJS.java index f36fc042..d624eadb 100644 --- a/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/plugin_scripts_js/JavaScriptBridgeJS.java +++ b/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/plugin_scripts_js/JavaScriptBridgeJS.java @@ -148,7 +148,7 @@ public class JavaScriptBridgeJS { " }," + " 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) {" +