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);