From 7c0b52b9254e060767755660759dc718a01aa372 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 23 Jun 2014 16:39:47 +0000 Subject: [PATCH] --- js/main.js | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) 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); -- 2.39.5