mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-30 18:45:07 +00:00
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:
parent
c5aa7514ab
commit
10539971f1
|
@ -293,14 +293,8 @@ function initMobile() {
|
||||||
if ( !mw.user.isAnon() ) {
|
if ( !mw.user.isAnon() ) {
|
||||||
// FIXME: skins.minerva.scripts can be removed from list of dependencies when T221007
|
// FIXME: skins.minerva.scripts can be removed from list of dependencies when T221007
|
||||||
// has been resolved.
|
// has been resolved.
|
||||||
mw.loader.using( [ 'ext.echo.mobile', 'mobile.startup', 'skins.minerva.scripts' ] ).then( function ( require ) {
|
mw.loader.using( [ 'ext.echo.mobile', 'mobile.startup' ] ).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' )();
|
require( 'ext.echo.mobile' )();
|
||||||
}
|
|
||||||
} );
|
} );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue