this.fluidbook.viewport.maxScale = 1;
this.fluidbook.viewport.userScalable = false;
} else {
- this.fluidbook.viewport.maxScale = 8;
+ this.fluidbook.viewport.maxScale = 4;
this.fluidbook.viewport.userScalable = true;
}
this.fluidbook.viewport.updateViewport();
}
- var collection = JSON.parse(window.localStorage.getItem('collection'));
+ var collection;
+ try {
+ collection = json_parse(window.localStorage.getItem('collection'))
+ } catch (err) {
+
+ }
if (collection.res != undefined && collection.res) {
resolution = collection.res;
}
if (navigator.onLine && manifest && !OFFLINEAPP) {
var readyToLoad = false;
var finishedLoading = false;
- gal = new GameAssetLoader(JSON.parse(manifest), fsprefix);
- gal = new GameAssetLoader(JSON.parse(manifest), fsprefix);
+ gal = new GameAssetLoader(json_parse(manifest), fsprefix);
+
gal.init(function() {
startAfterLoading = true;
init();
window.location = getPublicationURL(id);
} else {
var topmanifest = window.sessionStorage.getItem('topmanifest');
- window.gallocale = new GameAssetLoader(JSON.parse(topmanifest), window.sessionStorage.getItem('galfsprefix'));
+ window.gallocale = new GameAssetLoader(json_parse(topmanifest,'topmanifest'), window.sessionStorage.getItem('galfsprefix'));
window.gallocale.init(function() {
window.gallocale.downloadAndCall('p_' + id, function() {
window.location = getPublicationURL(id);