Merge "Prevent desktop init from running on mobile"

This commit is contained in:
jenkins-bot 2023-05-12 10:32:22 +00:00 committed by Gerrit Code Review
commit 929b4d405d

View file

@ -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;