No longer check for skins.minerva.scripts

Echo is now in complete control. Cleanup after ourselves.

Change-Id: I9a26c7a88f5e3ff19ec5b17b08a0d05c4f9e60ce
Depends-On: I9a6b06158d9083317aea46510c0c47980a25e50a
Bug: T221007
This commit is contained in:
jdlrobson 2019-10-08 14:41:38 -07:00 committed by Kosta Harlan
parent c5aa7514ab
commit 10539971f1

View file

@ -293,14 +293,8 @@ function initMobile() {
if ( !mw.user.isAnon() ) {
// FIXME: skins.minerva.scripts can be removed from list of dependencies when T221007
// has been resolved.
mw.loader.using( [ 'ext.echo.mobile', 'mobile.startup', 'skins.minerva.scripts' ] ).then( function ( require ) {
var minerva = require( 'skins.minerva.scripts' );
// This avoids enabling the Echo feature twice.
// If the Echo code has been removed from Minerva a VERSION number will have been defined.
// See _____.
if ( minerva && minerva.VERSION ) {
require( 'ext.echo.mobile' )();
}
mw.loader.using( [ 'ext.echo.mobile', 'mobile.startup' ] ).then( function ( require ) {
require( 'ext.echo.mobile' )();
} );
}
}