]> _ Git - fluidbook-html5.git/commitdiff
wait #4518
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 13 Sep 2021 13:58:21 +0000 (15:58 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 13 Sep 2021 13:58:21 +0000 (15:58 +0200)
js/main.js

index 01b0172a540a63814fbfb11a6aa0721896e0a80d..f998c428e61c681fc00b0a2b8f724a477e86943f 100644 (file)
@@ -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) {