// Fetch full url and store it locally.
- that.adapter.saveAsset(key, url, cb, cb);
+ that.adapter.saveAsset(key, url, cb, function() {
+
+ });
})(0);
}
return this.adapter.root.toURL();
};
+ GAL.prototype.getRootNativeURL = function() {
+ try {
+ return this.adapter.root.toNativeURL();
+ } catch (err) {
+ return this.getRootURL();
+ }
+ };
+
GAL.prototype.initAdapter = function(callback) {
if (null == this.adapter) {
this.initAdapter_(callback);
}, false);
}
- if (DATAS.phonegap) {
+ if (DATAS && DATAS.phonegap) {
loadPhonegap();
} else {
init();
}
var collection;
- console.error(window.localStorage.getItem('collection'));
try {
collection = json_parse(window.localStorage.getItem('collection'));
} catch (err) {
}
if (navigator.onLine && manifest && !OFFLINEAPP) {
+ fb('init online');
+
var readyToLoad = false;
var finishedLoading = false;
gal = new GameAssetLoader(json_parse(manifest, 'manifest'), fsprefix);