From 2fbe7bfc685b1a3df3bb81cda570258151f9e6d0 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 26 Aug 2014 17:24:47 +0000 Subject: [PATCH] --- js/libs/cube/fb.js | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/js/libs/cube/fb.js b/js/libs/cube/fb.js index a309213c..f3ccc521 100644 --- a/js/libs/cube/fb.js +++ b/js/libs/cube/fb.js @@ -9,29 +9,18 @@ function fb(o, type) { 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; } -- 2.39.5