mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 07:02:51 +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);
|
||||
}
|
||||
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);
|
||||
}
|
||||
}, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user