mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-23 23:44:53 +00:00
Merge "No longer check for skins.minerva.scripts"
This commit is contained in:
commit
c7215f9f5f
|
@ -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