X-Git-Url: https://git.mdrn.pl/wl-mobile.git/blobdiff_plain/065d23f9494e1afb7f61ada08b728405b1b7a0cf..4aa83d4ec5f1b6d86b922e022df16de4fe373ea8:/assets/www/js/catalogue.js?ds=inline diff --git a/assets/www/js/catalogue.js b/assets/www/js/catalogue.js index 268c817..44f8e80 100644 --- a/assets/www/js/catalogue.js +++ b/assets/www/js/catalogue.js @@ -1,3 +1,8 @@ +/* + * This file is part of WolneLektury-Mobile, licensed under GNU Affero GPLv3 or later. + * Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. + */ + var DB_VER = '0.9.15'; var WL_INITIAL = WL + '/media/api/mobile/initial/initial.db'; @@ -94,20 +99,12 @@ var Catalogue = new function() { // db initialize // this is Android-specific for now - var android = device.version.split('.')[0]; - if (android > 1) { - self.upload_db_android(done, error); - } else { - error && error("Nieobsługiwana wersja systemu. Wymagany Android>=2.0."); - }; + self.upload_db_android(done, error); }; this.upload_db_android = function(success, error) { - // TODO: this should be downloaded from teh net, not stored in res - console.log('upload db for Android 2.x+'); - // upload databases description file var dbname = "wolnelektury"; var db = window.openDatabase(dbname, "1.0", "WL Catalogue", 500000);