]> _ Git - fluidbook-html5.git/commitdiff
wait #4411 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 26 Apr 2021 16:27:01 +0000 (18:27 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 26 Apr 2021 16:27:01 +0000 (18:27 +0200)
js/libs/fluidbook/fluidbook.bookmarks.js

index 9ddd828ba8aca9fbbab4e409d1941c8319af4d85..8599e318a0d913a657aedb620b8c85bd5ca90730 100644 (file)
@@ -368,6 +368,9 @@ FluidbookBookmarks.prototype = {
         return this.areBookmarksAllowedOn(page) && this.bookmarks.indexOf(page) > -1;
     },
     areBookmarksAllowedOn: function (pageNr) {
+        if (pageNr === 0 || pageNr > this.fluidbook.settings.pages) {
+            return false;
+        }
         return this.fluidbook.settings.bookmarkDisablePages.indexOf(pageNr) === -1;
     },
     getBookmarkForPage: function (pageNr, allwaysAtRight, permanentIcon) {