Fixed intersection observer check on iOS

This commit is contained in:
Dan Brown
2019-05-06 16:08:08 +01:00
parent 7a8678e5f7
commit b9ad3f9f65
2 changed files with 4 additions and 3 deletions

View 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;
}

View File

@ -215,6 +215,7 @@ header .search-box {
.tri-layout-mobile-tab {
text-align: center;
border-bottom: 3px solid #BBB;
cursor: pointer;
&:first-child {
border-right: 1px solid #DDD;
}