File tree Expand file tree Collapse file tree 4 files changed +4
-9
lines changed
android/capacitor/src/main
ios/Capacitor/Capacitor/assets Expand file tree Collapse file tree 4 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -326,7 +326,7 @@ var nativeBridge = (function (exports) {
326326 c . error ( result . error ) ;
327327 }
328328 else {
329- c . dir ( result . data ) ;
329+ c . dir ( JSON . stringify ( result . data ) ) ;
330330 }
331331 c . groupEnd ( ) ;
332332 }
Original file line number Diff line number Diff line change @@ -447,12 +447,7 @@ public boolean onConsoleMessage(ConsoleMessage consoleMessage) {
447447 }
448448
449449 public boolean isValidMsg (String msg ) {
450- return !(
451- msg .contains ("%cresult %c" ) ||
452- (msg .contains ("%cnative %c" )) ||
453- msg .equalsIgnoreCase ("[object Object]" ) ||
454- msg .equalsIgnoreCase ("console.groupEnd" )
455- );
450+ return !(msg .contains ("%cresult %c" ) || (msg .contains ("%cnative %c" )) || msg .equalsIgnoreCase ("console.groupEnd" ));
456451 }
457452
458453 private Uri createImageFileUri () throws IOException {
Original file line number Diff line number Diff line change @@ -330,7 +330,7 @@ const initBridge = (w: any): void => {
330330 if ( result . success === false ) {
331331 c . error ( result . error ) ;
332332 } else {
333- c . dir ( result . data ) ;
333+ c . dir ( JSON . stringify ( result . data ) ) ;
334334 }
335335 c . groupEnd ( ) ;
336336 } else {
Original file line number Diff line number Diff line change @@ -326,7 +326,7 @@ var nativeBridge = (function (exports) {
326326 c . error ( result . error ) ;
327327 }
328328 else {
329- c . dir ( result . data ) ;
329+ c . dir ( JSON . stringify ( result . data ) ) ;
330330 }
331331 c . groupEnd ( ) ;
332332 }
You can’t perform that action at this time.
0 commit comments