X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/5f2d226f09229566de24f0f6ff526eaf9ade9e1f..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; }