mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-27 17:00:37 +00:00
Disable error logging for missing settings cog on references beta feature
Bug: T346404 Change-Id: I36b1759f6d00ff6ce584a1bc1ac68dedd633fc6a
This commit is contained in:
parent
e69309d5a2
commit
961778b3c5
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