diff --git a/.eslintrc b/.eslintrc index 1ea5164..6e47b6a 100644 --- a/.eslintrc +++ b/.eslintrc @@ -79,6 +79,7 @@ "browser": true, "browserAction": true, "createStylesheet": true, + "DatabaseState": true, "httpAuth": true, "Icon": true, "isEdge": true, diff --git a/keepassxc-browser/background/httpauth.js b/keepassxc-browser/background/httpauth.js index 123bad9..a621490 100755 --- a/keepassxc-browser/background/httpauth.js +++ b/keepassxc-browser/background/httpauth.js @@ -66,7 +66,7 @@ httpAuth.processPendingCallbacks = async function(details, resolve, reject) { // Non-HTTP proxies are possible with PAC scripts, while currently only // Firefox provides info about the proxy protocol used [1]. // [1] https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/webRequest/onAuthRequired - let scheme = details.proxyInfo ? details.proxyInfo.type : 'http'; + const scheme = details.proxyInfo ? details.proxyInfo.type : 'http'; details.proxyUrl = scheme + '://' + details.challenger.host; } diff --git a/keepassxc-browser/content/keepassxc-browser.js b/keepassxc-browser/content/keepassxc-browser.js index cce25ac..91b6d8a 100755 --- a/keepassxc-browser/content/keepassxc-browser.js +++ b/keepassxc-browser/content/keepassxc-browser.js @@ -10,7 +10,7 @@ const DatabaseState = { DISCONNECTED: 0, LOCKED: 1, UNLOCKED: 2 -} +}; const acceptedOTPFields = [ '2fa',