Remove skinning modules when showing preview

Bug: T185284
Change-Id: Ifec8809cd75cb76c79936a69351be0c7779de39e
This commit is contained in:
Arlo Breault 2021-07-27 17:37:54 -04:00
parent 632d83aa8d
commit 2fd09aaba3

View file

@ -214,9 +214,9 @@ ve.ui.MWSaveDialog.prototype.showPreview = function ( docOrMsg, baseDoc ) {
modules = modules.concat( mw.libs.ve.expandModuleNames( uri.query.modules ) );
}
} );
// Remove skin-specific modules (T187075)
// Remove skin-specific modules (T187075 / T185284)
modules = modules.filter( function ( module ) {
return module.indexOf( 'skins.' ) !== 0;
return ( module.match( /^(skins|mediawiki\.skinning)\./ ) === null );
} );
mw.loader.using( modules );
body = docOrMsg.body;