]> _ Git - fluidbook-html5.git/commitdiff
wip #3385 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 31 Jan 2020 14:48:32 +0000 (15:48 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 31 Jan 2020 14:48:32 +0000 (15:48 +0100)
js/libs/fluidbook/fluidbook.secure.js

index b88fbef59ab21b0c05721451890d2155e6348d57..0d5ab59807005e5c15ae0e683e7970f97f75cd94 100644 (file)
@@ -14,6 +14,20 @@ FluidbookSecure.prototype = {
                     this.fluidbook.settings.pdf = false;
                 }
 
+                if (this.fluidbook.settings.restrictSendBookmark) {
+                    this.fluidbook.settings.bookmarkSendEnable = false;
+                }
+            }
+        }
+    },
+
+    checkSecure: function (callback) {
+
+        if (this.fluidbook.settings.secureURL === 'http://' || this.fluidbook.settings.secureURL === '') {
+            callback();
+            return;
+        }
+
         var $this = this;
         $.ajax({
             url: $this.fluidbook.settings.secureURL,