mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-07 23:03:11 +08:00
Replace deprecated debug.log with console.log.
This commit is contained in:
parent
1428ac5ed5
commit
dce0d93df8
@ -157,11 +157,7 @@ PhoneGap.addConstructor = function(func) {
|
|||||||
try {
|
try {
|
||||||
func();
|
func();
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
if (typeof(debug['log']) == 'function') {
|
console.log("Failed to run constructor: " + e);
|
||||||
debug.log("Failed to run constructor: " + debug.processMessage(e));
|
|
||||||
} else {
|
|
||||||
alert("Failed to run constructor: " + e.message);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user