From: Vincent Vanwaelscappel Date: Mon, 13 Sep 2021 13:58:21 +0000 (+0200) Subject: wait #4518 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=90fc84d0827221a62a0b344f5668bf83b27959ef;p=fluidbook-html5.git wait #4518 --- diff --git a/js/main.js b/js/main.js index 01b0172a..f998c428 100644 --- a/js/main.js +++ b/js/main.js @@ -122,6 +122,7 @@ try { window.ExternalFileUtil = cordova.require('com.techblue.cordova.plugin.externalfileutilios.ExternalFileUtilIos'); } catch (err) { console.error('Error while loading ExternalFileUtil plugin'); + console.error(err); } } else if (PLATFORM == 'android') { @@ -254,8 +255,12 @@ try { } INITED = true; - console.log('init fluidbook'); - window.fluidbook = new Fluidbook(SETTINGS); + console.log('init fluidbook '+window.location); + try { + window.fluidbook = new Fluidbook(SETTINGS); + }catch (e) { + console.error('error while loading the fluidbook '+e.message); + } if (null != gal) { fluidbook.gal = gal; } @@ -275,6 +280,8 @@ try { } function initEvents() { + console.log('init events'); + resize(true); if (SETTINGS.preventRightClick) {