17,097
edits
(Enable collapsible elements on mobile view, in line with desktop view behaviour) Tags: Mobile edit Mobile web edit Advanced mobile edit |
(Fix sticky header page header detection on mobile view) |
||
Line 550: | Line 550: | ||
if (!isOverflown) { | if (!isOverflown) { | ||
var headElem = document.getElementById('mw-header-container'); | var headElem = document.getElementById('mw-header-container'); | ||
if (headElem !== undefined) { | if ((headElem !== undefined) && (headElem !== null)) { | ||
var headStyles = getComputedStyle(headElem); | var headStyles = getComputedStyle(headElem); | ||
if ((headStyles !== undefined) && (headStyles.position !== 'static')) { | if ((headStyles !== undefined) && (headStyles.position !== 'static')) { |