From: Vincent Vanwaelscappel Date: Mon, 23 Jun 2014 16:39:47 +0000 (+0000) Subject: (no commit message) X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=7c0b52b9254e060767755660759dc718a01aa372;p=fluidbook-html5.git --- diff --git a/js/main.js b/js/main.js index 6c3e4671..5e6ce2f0 100644 --- a/js/main.js +++ b/js/main.js @@ -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);