diff --git a/resources/skins.vector.js/languageButton.js b/resources/skins.vector.js/languageButton.js index 9f6def800..76d40f719 100644 --- a/resources/skins.vector.js/languageButton.js +++ b/resources/skins.vector.js/languageButton.js @@ -12,7 +12,10 @@ function disableLanguageDropdown() { if ( !pLangBtn ) { return; } - + if ( !pLangBtn.querySelectorAll( '.mw-interlanguage-selector' ).length ) { + // The ext.uls.interface module removed the selector, because the feature is disabled. Do nothing. + return; + } pLangBtn.classList.add( 'vector-menu--hide-dropdown' ); } ); } else {