mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-26 03:53:09 +08:00
Adding a console.log statement to debug errors in callback
This commit is contained in:
parent
f63b8140af
commit
8c624c7f22
@ -579,6 +579,8 @@ PhoneGap.JSCallback = function() {
|
|||||||
var t = eval(msg);
|
var t = eval(msg);
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
|
// If we're getting an error here, seeing the message will help in debugging
|
||||||
|
console.log("Message from Server: " + msg");
|
||||||
console.log("JSCallback Error: "+e);
|
console.log("JSCallback Error: "+e);
|
||||||
}
|
}
|
||||||
}, 1);
|
}, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user