X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/553d3ce861c733ff6a90956ef71f116028f3f49b..refs/pull/1462/head:/resources/assets/js/components/page-display.js diff --git a/resources/assets/js/components/page-display.js b/resources/assets/js/components/page-display.js index 1aeeaf248..e87966d7d 100644 --- a/resources/assets/js/components/page-display.js +++ b/resources/assets/js/components/page-display.js @@ -184,9 +184,9 @@ class PageDisplay { setupNavHighlighting() { // Check if support is present for IntersectionObserver - if (!'IntersectionObserver' in window || - !'IntersectionObserverEntry' in window || - !'intersectionRatio' in window.IntersectionObserverEntry.prototype) { + if (!('IntersectionObserver' in window) || + !('IntersectionObserverEntry' in window) || + !('intersectionRatio' in window.IntersectionObserverEntry.prototype)) { return; }