mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-23 23:24:39 +00:00
Merge "Disable Reference Previews in the (mobile) Minerva skin"
This commit is contained in:
commit
88fa9c0131
|
@ -67,7 +67,7 @@
|
|||
"bundlesize": [
|
||||
{
|
||||
"path": "resources/dist/index.js",
|
||||
"maxSize": "13.61kB"
|
||||
"maxSize": "13.63kB"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
BIN
resources/dist/index.js
vendored
BIN
resources/dist/index.js
vendored
Binary file not shown.
BIN
resources/dist/index.js.map.json
vendored
BIN
resources/dist/index.js.map.json
vendored
Binary file not shown.
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in a new issue