]> _ Git - fluidbook-html5.git/commitdiff
(no commit message)
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 23 Jun 2014 16:16:17 +0000 (16:16 +0000)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 23 Jun 2014 16:16:17 +0000 (16:16 +0000)
js/main.js

index 860aee68701b2a8540c589e516ae79bcc665e187..c45bfdbbd43d0d30c8723cf151667b5eb52154ef 100644 (file)
@@ -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];