mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-28 17:02:04 +03:00
Fixed intersection observer check on iOS
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user