We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f3ae40 commit abbd2a6Copy full SHA for abbd2a6
commands/utils/validate.js
@@ -255,7 +255,7 @@ function validateCustomViewPorts(customViewports) {
255
if (width && width < MIN_RESOLUTION_WIDTH || width > MAX_RESOLUTION_WIDTH) {
256
throw new ValidationError(`customViewports.styles width must be > ${MIN_RESOLUTION_WIDTH}, < ${MAX_RESOLUTION_WIDTH}`);
257
}
258
- if (height && (height < MIN_RESOLUTION_HEIGHT || height > MIN_RESOLUTION_HEIGHT)) {
+ if (height && (height < MIN_RESOLUTION_HEIGHT || height > MAX_RESOLUTION_HEIGHT)) {
259
throw new ValidationError(`customViewports.styles height must be > ${MIN_RESOLUTION_HEIGHT}, < ${MAX_RESOLUTION_HEIGHT}`);
260
261
element.styles.width = width;
0 commit comments