-var VERSION = '1.0';
+/*
+ * This file is part of WolneLektury-Mobile, licensed under GNU Affero GPLv3 or later.
+ * Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+ */
+
var WL = 'http://www.wolnelektury.pl';
+// disable debugging
+console.log = function(text) {};
+
+
function onLoad() {
console.log('onLoad');
document.addEventListener("deviceready", onDeviceReady, false);
History.init(function() {
console.log('after history.init');
View.init(function() {
- Catalogue.sync(function() {
- Catalogue.updateLocal();
+ Menu.init(function() {
+ Catalogue.sync(function() {
+ Catalogue.updateLocal();
+ }, error);
}, error);
}, error);
}, error);
return Math.round(size*10)/10 + ' ' + unit;
}
return Math.round(size) + ' ' + unit;
-}
+};