[Prototype] Add screen resolution to Typography prototype

Adds screen resolution (`${window.innerWidth} x ${window.innerHeight}`)
to the prefilled feedback form for the typography prototype.

Change-Id: I38ec6fe5232c1d90df6d5d56b0f0cb32acdcc64e
This commit is contained in:
Jan Drewniak 2023-10-04 12:36:29 -04:00
parent e2fc864c2d
commit 0232752097

View file

@ -93,6 +93,7 @@ module.exports = exports = {
[ 'preloadparams[]', this.lineHeight ],
[ 'preloadparams[]', this.verticalMargins ],
[ 'preloadparams[]', window.location.href ],
[ 'preloadparams[]', `${window.innerWidth} x ${window.innerHeight}` ],
[ 'preloadtitle', ( mw.user.getName() ) ? 'User: ' + mw.user.getName() : '' ]
] );
return "https://www.mediawiki.org/wiki/Reading/Web/Accessibility_for_reading/Community_Prototype_Testing/Feedback?" + feedbackUrlParams.toString();