var string = '';
string = JSON.stringify(o);
- if (DATAS.phonegap) {
+ if (window.console != undefined) {
try {
if (type == 'log') {
- cordova.logger.debug(string);
+ window.console.log(o);
} else if (type == 'error') {
- cordova.logger.error(string);
+ window.console.error(o);
}
} catch (err) {
}
- } else {
- if (window.console != undefined) {
- try {
- if (type == 'log') {
- window.console.log(o);
- } else if (type == 'error') {
- window.console.error(o);
- }
- } catch (err) {
-
- }
- }
}
+
return;
}