From: Vincent Vanwaelscappel Date: Tue, 26 Aug 2014 17:24:47 +0000 (+0000) Subject: (no commit message) X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=2fbe7bfc685b1a3df3bb81cda570258151f9e6d0;p=fluidbook-html5.git --- 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; }