mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-09-24 02:48:18 +00:00
Merge "Don't try to load 'mobile.init' on non-mobile"
This commit is contained in:
commit
1cb8fb6e99
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue