mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-12-02 03:07:13 +00:00
9 lines
222 B
JavaScript
9 lines
222 B
JavaScript
|
module.exports = function () {
|
||
|
var header = document.getElementById( 'vector-sticky-header' );
|
||
|
if ( !header ) {
|
||
|
return;
|
||
|
}
|
||
|
// TODO: Use IntersectionObserver
|
||
|
header.classList.add( 'vector-sticky-header-visible' );
|
||
|
};
|