Update JavaScriptBridgeJS.swift
replaced js arrayBufferToString uint8Array.reduce arrow function with normal function
This commit is contained in:
parent
0f9896aedf
commit
4d41b1b4df
|
@ -176,7 +176,7 @@ let UTIL_JS_SOURCE = """
|
||||||
},
|
},
|
||||||
arrayBufferToString: function(arrayBuffer) {
|
arrayBufferToString: function(arrayBuffer) {
|
||||||
const uint8Array = new Uint8Array(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;
|
return data;
|
||||||
},
|
},
|
||||||
isBodyFormData: function(bodyString) {
|
isBodyFormData: function(bodyString) {
|
||||||
|
|
Loading…
Reference in New Issue