From 39404635c18317152fe3b1c840e49af4b9508776 Mon Sep 17 00:00:00 2001 From: Kilian Saffran Date: Mon, 2 Jul 2018 08:39:57 +0200 Subject: [PATCH] CHeck always license on statup --- app_v3/chrome/content/js/init.js | 5 +++-- app_v3/chrome/content/js/license.js | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app_v3/chrome/content/js/init.js b/app_v3/chrome/content/js/init.js index 97c70f4..fdbae83 100644 --- a/app_v3/chrome/content/js/init.js +++ b/app_v3/chrome/content/js/init.js @@ -15,6 +15,7 @@ if ((expiration) && (test > expiration)){ dump("License expired\n"); navigation.load_deck(1); } else if (!apppref.getpreference("support.database.currentdb.num")) { + navigation.load_deck(1); dump("No Database configuration\n"); } else if ( !lic || !expiration || !lic.match(licmatch)){ @@ -45,8 +46,8 @@ else { apppref.setpreference("pageconfig.lastpage", nx); } - - navigation.load_deck(2); + license.checklicense(lic,license.setactiveview); + //navigation.load_deck(2); } } diff --git a/app_v3/chrome/content/js/license.js b/app_v3/chrome/content/js/license.js index ffc759e..4d73ebf 100644 --- a/app_v3/chrome/content/js/license.js +++ b/app_v3/chrome/content/js/license.js @@ -26,6 +26,7 @@ var license = { // OS.File.copy(dbclone, dbname); }, + setcreche: function(){ var chk = document.getElementById("chk_setcreche").checked; //"Is checked" + chk + "\n"); -- 2.39.5