Merge pull request #773 from keepassxreboot/fix/import_settings_check

Fix import settings check
This commit is contained in:
Sami Vänttinen 2020-02-16 14:33:26 +02:00 committed by GitHub
commit 52cf4cb8e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -209,9 +209,9 @@ options.initGeneralSettings = function() {
const contents = JSON.parse(e.target.result);
// A quick check that this is the KeePassXC-Browser settings file
if (!contents['checkUpdateKeePassXC'] ||
!contents['autoCompleteUsernames'] ||
!contents['autoFillAndSend']) {
if (contents['checkUpdateKeePassXC'] === undefined ||
contents['autoCompleteUsernames'] === undefined ||
contents['autoFillAndSend'] === undefined) {
console.log('Error: Not a KeePassXC-Browser settings file.');
return;
}