]> BookStack Code Mirror - bookstack/blobdiff - resources/assets/js/components/page-display.js
Update maintenance.php
[bookstack] / resources / assets / js / components / page-display.js
index 1aeeaf248a6df307ee342d9804629447d6639b1d..e87966d7dbbcfc7b83b8fc7b596f36e034bbafd2 100644 (file)
@@ -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;
         }