]> _ Git - fluidbook-html5.git/commitdiff
Bug hotfixes
authorStephen Cameron <stephen@cubedesigners.com>
Wed, 18 May 2022 09:33:24 +0000 (11:33 +0200)
committerStephen Cameron <stephen@cubedesigners.com>
Wed, 18 May 2022 09:33:24 +0000 (11:33 +0200)
js/libs/fluidbook/fluidbook.links.js
js/libs/fluidbook/fluidbook.menu.js

index 835934031d949b25d52ebfb928b00a26515c2f79..4252d07e63caba0b2d2c74d485743c3695eb5608 100644 (file)
@@ -100,10 +100,13 @@ FluidbookLinks.prototype = {
             var iframeDocument = iframeWindow.document;
             var iframeLottie = iframeDocument.getElementById('lottie');
 
+            if (!iframeLottie) {
+                return true;
+            }
+
             var event = new MouseEvent(e.type, {
                 'view': iframeWindow, 'bubbles': true, 'cancelable': true
             });
-            console.log(iframeLottie);
 
             iframeLottie.dispatchEvent(event);
             return true;
index 791c422281fd13fcb462bd7ae40ba790f70ba0e6..dab968392988d7e82b3355dca682fe5f1b3ac1dc 100644 (file)
@@ -696,7 +696,7 @@ FluidbookMenu.prototype = {
 
     quickCloseView: function () {
         $("#view .mview").remove();
-        $this.closeViewCallbackEvent(true);
+        this.closeViewCallbackEvent(true);
     },
 
     resize: function (ww, hh) {