mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-27 17:20:40 +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() ) {
|
||||
// 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' )();
|
||||
} );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue