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 848ae15 commit 2d6d6aeCopy full SHA for 2d6d6ae
easybridge/src/main/assets/easybridge.js
@@ -95,8 +95,8 @@
95
96
function _resolveResult(result) {
97
console.log(result);
98
- if (result) {
99
- result = typeof result == 'object' ? JSON.stringify(result) : JSON.parse(result.replace(/\n/g, '\\\\n'));
+ if (typeof result == 'string') {
+ result = JSON.parse(result.replace(/\n/g, '\\\\n'));
100
}
101
return result;
102
0 commit comments