Avoid loading ext.uls.compactlinks module for Vector 2022 skin

Bug: T353850
Change-Id: I43551be73da2126fd84ffaa0d37faec58bc47135
This commit is contained in:
NikG
2024-01-04 20:47:06 +02:00
committed by jenkins-bot
parent 1e4466ec16
commit 0b7ae1dce6
2 changed files with 20 additions and 5 deletions

View File

@@ -727,11 +727,12 @@
initPersonalEntryPoint();
}
// whether to load compact language links
var compact = mw.config.get( 'wgULSisCompactLinksEnabled' );
// The scope of the compact language links user preference has been expanded to also
// determine whether to show the omni box or not. Compact language links is already not
// loaded server side, so this is only relevant for the omnibox.
if ( compact ) {
// whether to show the omni box or not
var languageInHeader = mw.config.get( 'wgVector2022LanguageInHeader' );
if ( compact || languageInHeader ) {
// Init compact languages OR omni selector using the mw-interlanguage-selector class
initContentLanguageSelectorClickHandler();
} else {