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

index 6c3e4671198ea4905dd3b6a0765a564f15959ace..5e6ce2f0d5ddbd1079a9a80d5b86cf239df31e5b 100644 (file)
@@ -149,24 +149,18 @@ try {
                if (!OFFLINEAPP) {
                        console.log('set manifest from manifest pub');
                        manifest = collection.manifestPub[DATAS.id];
-
-               } else {
-                       console.log('manifest set in local storage');
                }
 
-               try {
-                       console.log(manifest.bundles[0].name);
-                       console.log(manifest.bundles[0].contents[0]);
-               } catch (err) {
-                       fb(manifest);
-               }
+               console.log(manifest.bundles[0].name);
+               console.log(manifest.bundles[0].contents[0]);
+               console.log(manifest.bundles.length);
 
-               if (navigator.onLine && manifest && !OFFLINEAPP) {
+               if (navigator.onLine && !OFFLINEAPP) {
                        console.log('init online');
 
                        var readyToLoad = false;
                        var finishedLoading = false;
-                       gal = new GameAssetLoader(json_parse(manifest, 'manifest'), fsprefix);
+                       gal = new GameAssetLoader(manifest, fsprefix);
 
                        gal.init(galLoaded);