]> _ Git - fluidbook-html5.git/commitdiff
(no commit message)
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 26 Aug 2014 17:24:47 +0000 (17:24 +0000)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 26 Aug 2014 17:24:47 +0000 (17:24 +0000)
js/libs/cube/fb.js

index a309213c416480ea0553359e1a8bbf0790d40915..f3ccc521a511691ed8812d24eff0ca961ac54fe1 100644 (file)
@@ -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;
 }