From 7a9672a3c726b46e965a3828959941c226d6cf57 Mon Sep 17 00:00:00 2001 From: varjolintu Date: Sun, 13 Dec 2020 21:25:28 +0200 Subject: [PATCH] Move constants to one file --- keepassxc-browser/content/totp-field.js | 2 -- keepassxc-browser/content/ui.js | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/keepassxc-browser/content/totp-field.js b/keepassxc-browser/content/totp-field.js index a4c285a..c968b49 100644 --- a/keepassxc-browser/content/totp-field.js +++ b/keepassxc-browser/content/totp-field.js @@ -2,8 +2,6 @@ const ignoreRegex = /(bank|coupon|postal|user|zip).*code|comment|author/i; const ignoredTypes = [ 'email', 'password', 'username' ]; -const MIN_TOTP_INPUT_LENGTH = 6; -const MAX_TOTP_INPUT_LENGTH = 10; const acceptedOTPFields = [ '2fa', diff --git a/keepassxc-browser/content/ui.js b/keepassxc-browser/content/ui.js index bfa7aae..aa3fce6 100644 --- a/keepassxc-browser/content/ui.js +++ b/keepassxc-browser/content/ui.js @@ -1,6 +1,8 @@ 'use strict'; const MINIMUM_INPUT_FIELD_WIDTH = 60; +const MIN_TOTP_INPUT_LENGTH = 6; +const MAX_TOTP_INPUT_LENGTH = 10; const DatabaseState = { DISCONNECTED: 0,