turn off debugging
authorRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Mon, 5 Sep 2011 10:11:06 +0000 (12:11 +0200)
committerRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Mon, 5 Sep 2011 10:11:06 +0000 (12:11 +0200)
AndroidManifest.xml
assets/www/js/main.js

index 66f2e50..6ff99bb 100644 (file)
@@ -17,7 +17,7 @@
    
 
     <application android:icon="@drawable/icon" android:label="@string/app_name"
-       android:debuggable="true">
+       android:debuggable="false">
         <activity android:name=".Catalogue"
                   android:label="@string/app_name" android:configChanges="orientation|keyboardHidden">
             <intent-filter>
index 2daacf5..00d8b29 100644 (file)
@@ -7,6 +7,10 @@ var VERSION = '1.0';
 var WL = 'http://www.wolnelektury.pl';
 
 
+// disable debugging
+console.log = function(text) {};
+
+
 function onLoad() {
        console.log('onLoad');
        document.addEventListener("deviceready", onDeviceReady, false);
@@ -58,4 +62,4 @@ var prettySize = function(size) {
         return Math.round(size*10)/10 + ' ' + unit;
     }
     return Math.round(size) + ' ' + unit;
-}
+};