Fix import settings check

This commit is contained in:
varjolintu 2020-02-16 12:17:49 +02:00
parent e1e5da2036
commit b772270adc

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;
}