diff --git a/ext/bg/js/json-schema.js b/ext/bg/js/json-schema.js index 9b651f46..29873b52 100644 --- a/ext/bg/js/json-schema.js +++ b/ext/bg/js/json-schema.js @@ -339,7 +339,7 @@ class JsonSchemaProxyHandler { return 'String length too short'; } - const maxLength = schema.minLength; + const maxLength = schema.maxLength; if (typeof maxLength === 'number' && value.length > maxLength) { return 'String length too long'; }