From 90fc84d0827221a62a0b344f5668bf83b27959ef Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 13 Sep 2021 15:58:21 +0200 Subject: [PATCH] wait #4518 --- js/main.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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) { -- 2.39.5