From a949b88911de18c1649c4d754c32b8bd263847e8 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 23 Jun 2014 16:16:17 +0000 Subject: [PATCH] --- js/main.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/main.js b/js/main.js index 860aee68..c45bfdbb 100644 --- a/js/main.js +++ b/js/main.js @@ -116,6 +116,9 @@ try { document.addEventListener("offline", onDeviceOffline, false); var manifest = window.localStorage.getItem('manifest.' + DATAS.id); + + console.log('manifest from storage == ' + JSON.stringify(manifest)); + var fsprefix = window.sessionStorage.getItem('galfsprefix'); PLATFORM = DATAS.phonegap; @@ -145,7 +148,7 @@ try { resolution = 150; } - if (DATAS.phonegap && !manifest && !OFFLINEAPP) { + if (DATAS.phonegap && (!manifest || manifest == '0') && !OFFLINEAPP) { console.log('set manifest from manifest pub'); manifest = collection.manifestPub[DATAS.id]; -- 2.39.5