We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9894bc2 commit 0332cb1Copy full SHA for 0332cb1
easybridge/src/main/assets/easybridge.js
@@ -24,11 +24,8 @@
24
callbackArray[callbackId] = callback;
25
}
26
27
- var parameters;
28
- if (typeof args == 'string') {
29
- parameters = args;
30
- } else {
31
- parameters = args || {};
+ var parameters = args || "";
+ if (typeof parameters == 'object') {
32
parameters = JSON.stringify(parameters);
33
34
//the name '_easybridge' is an java object that mapping to a javascript object,using addJavaInterface in Java code
0 commit comments