Merge "Don't try to load 'mobile.init' on non-mobile"

This commit is contained in:
jenkins-bot 2021-11-29 19:24:02 +00:00 committed by Gerrit Code Review
commit 1cb8fb6e99

View file

@ -707,7 +707,7 @@ function init( $container, state ) {
// For debugging (now unused in the code)
mw.dt.pageThreads = pageThreads;
var promise = OO.ui.isMobile && mw.loader.getState( 'mobile.init' ) ?
var promise = OO.ui.isMobile() && mw.loader.getState( 'mobile.init' ) ?
mw.loader.using( 'mobile.init' ) :
$.Deferred().resolve().promise();