[Autofill on Page Load options] Make logins autofill on page load by default (#391)

* Make logins autofill on page load by default

* fix linting
This commit is contained in:
Thomas Rittson 2021-05-27 07:02:12 +10:00 committed by GitHub
parent 324e0909bc
commit 6fbe33043b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1106,7 +1106,7 @@ export class CipherService implements CipherServiceAbstraction {
if (autofillOnPageLoad) { if (autofillOnPageLoad) {
const autofillOnPageLoadDefault = await this.storageService.get(ConstantsService.autoFillOnPageLoadDefaultKey); const autofillOnPageLoadDefault = await this.storageService.get(ConstantsService.autoFillOnPageLoadDefaultKey);
ciphers = ciphers.filter(cipher => cipher.login.autofillOnPageLoad || ciphers = ciphers.filter(cipher => cipher.login.autofillOnPageLoad ||
(cipher.login.autofillOnPageLoad == null && autofillOnPageLoadDefault)); (cipher.login.autofillOnPageLoad == null && autofillOnPageLoadDefault !== false));
if (ciphers.length === 0) { if (ciphers.length === 0) {
return null; return null;
} }