1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-30 13:03:53 +01:00

Minor tweak so old server doesn't break autofill (#385)

This commit is contained in:
Thomas Rittson 2021-05-20 06:47:45 +10:00 committed by GitHub
parent 79e6d012c5
commit 3ab710389b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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