User:Nardog/dark-mode-toggle.js: Difference between revisions

Content deleted Content added
No edit summary
maybe this isn't needed
Line 33:
}
 
function vectorStickyCallback(data) {
makePortletLink('p-personal-sticky-header', 'pt-darkmode-sticky-header', '#pt-watchlist-sticky-header');
if (data.context === 'scrolled-below-page-title') {
mw.hook('vector.page_title_scroll').remove(vectorStickyCallback);
makePortletLink('p-personal-sticky-header', 'pt-darkmode-sticky-header', '#pt-watchlist-sticky-header');
mw.hook('vector.page_title_scroll').remove(vectorStickyCallback);
}
}