Merge "Disable Reference Previews in the (mobile) Minerva skin"

This commit is contained in:
jenkins-bot 2020-07-24 14:53:33 +00:00 committed by Gerrit Code Review
commit 88fa9c0131
4 changed files with 5 additions and 2 deletions

View file

@ -67,7 +67,7 @@
"bundlesize": [
{
"path": "resources/dist/index.js",
"maxSize": "13.61kB"
"maxSize": "13.63kB"
}
]
}

Binary file not shown.

Binary file not shown.

View file

@ -227,7 +227,10 @@ function registerChangeListeners(
}
// TODO: Replace with mw.user.options.get( 'popupsreferencepreviews' ) === '1' when not in Beta
// any more, and the temporary feature flag is not needed any more.
if ( mw.config.get( 'wgPopupsReferencePreviews' ) ) {
if ( mw.config.get( 'wgPopupsReferencePreviews' ) &&
// T243822: Temporarily disabled in the mobile skin
mw.config.get( 'skin' ) !== 'minerva'
) {
selectors.push( '#mw-content-text .reference a[ href*="#" ]' );
}
if ( !selectors.length ) {