Clean up hacky code that avoids loading @wikimedia/codex in vector 2022
This code was introduced as a hotfix for avoiding loading @wikimedia/codex module in vector 2022 skin, in I44835e672bce97a7d3a98d9d75c4805ee2cc448d. Now that the issue has been properly handled after this patch (I43551be73da2126fd84ffaa0d37faec58bc47135) has been merged, we can remove this code. Bug: T353850 Change-Id: I458a0a6835caedb25bfaa1c58800fb9ce849fb1b
This commit is contained in:
@@ -191,11 +191,9 @@
|
||||
}
|
||||
// If there is an interlanguage selector in the page already
|
||||
// there is no need to add a trigger and Codex styles (T353850).
|
||||
if ( !$( '.mw-interlanguage-selector' ).length ) {
|
||||
mw.loader.using( '@wikimedia/codex' ).then( function () {
|
||||
this.addTrigger();
|
||||
}.bind( this ) );
|
||||
}
|
||||
mw.loader.using( '@wikimedia/codex' ).then( function () {
|
||||
this.addTrigger();
|
||||
}.bind( this ) );
|
||||
|
||||
mw.hook( 'mw.uls.compactlinks.initialized' ).fire( true );
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user