mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-27 15:50:29 +00:00
Merge "Prevent desktop init from running on mobile"
This commit is contained in:
commit
929b4d405d
|
@ -42,6 +42,11 @@
|
|||
// Defined after document-ready below
|
||||
$targetContainer = null;
|
||||
|
||||
if ( mw.config.get( 'wgMFMode' ) ) {
|
||||
mw.log.warn( 'Attempted to load desktop target on mobile.' );
|
||||
return;
|
||||
}
|
||||
|
||||
function showLoading( /* mode */ ) {
|
||||
if ( isLoading ) {
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue