Update JavaScriptBridgeJS.java

replaced js arrayBufferToString uint8Array.reduce arrow function with normal function
This commit is contained in:
Lorenzo Pichilli 2022-10-13 15:48:04 +02:00 committed by GitHub
parent f82a8d413a
commit 0f9896aedf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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) {" +