Merge pull request #832 from keepassxreboot/fix/windows_auto_reconnect

Fix auto-reconnect with Windows
This commit is contained in:
Sami Vänttinen 2020-04-11 11:02:14 +03:00 committed by GitHub
commit 1020a8b0bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1112,7 +1112,9 @@ keepass.decrypt = function(input, nonce) {
keepass.enableAutomaticReconnect = function() {
// Disable for Windows if KeePassXC is older than 2.3.4
if (!page.settings.autoReconnect
|| (navigator.platform.toLowerCase().includes('win') && !keepass.compareVersion('2.3.4', keepass.currentKeePassXC))) {
|| (navigator.platform.toLowerCase().includes('win')
&& keepass.currentKeePassXC
&& !keepass.compareVersion('2.3.4', keepass.currentKeePassXC))) {
return;
}