mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-23 15:16:50 +00:00
Merge "Disable error logging for missing settings cog on references beta feature"
This commit is contained in:
commit
0d591abfe7
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.
|
@ -312,6 +312,12 @@ export function bindBehavior( preview, behavior ) {
|
|||
|
||||
behavior.showSettings( event );
|
||||
} );
|
||||
} else if (
|
||||
preview.el.classList.contains( 'mwe-popups-type-reference' ) &&
|
||||
mw.config.get( 'wgPopupsReferencePreviewsBetaFeature' )
|
||||
) {
|
||||
// The reference preview when in beta feature doesn't have a settings cog (T346404).
|
||||
return;
|
||||
} else {
|
||||
const err = new Error( 'Page previews: No settings button found in preview.' );
|
||||
mw.errorLogger.logError( err, 'error.web-team' );
|
||||
|
|
|
@ -118,8 +118,8 @@ module.exports = ( env, argv ) => ( {
|
|||
// Minified uncompressed size limits for chunks / assets and entrypoints. Keep these numbers
|
||||
// up-to-date and rounded to the nearest 10th of a kibibyte so that code sizing costs are
|
||||
// well understood. Related to bundlesize minified, gzipped compressed file size tests.
|
||||
maxAssetSize: 46.7 * 1024,
|
||||
maxEntrypointSize: 46.7 * 1024,
|
||||
maxAssetSize: 46.8 * 1024,
|
||||
maxEntrypointSize: 46.8 * 1024,
|
||||
|
||||
// The default filter excludes map files but we rename ours.
|
||||
assetFilter: ( filename ) => !filename.endsWith( srcMapExt )
|
||||
|
|
Loading…
Reference in a new issue