Merge pull request #104 from keepassxreboot/redetect_after_reload

Redetect credential fields after reload
This commit is contained in:
Janek Bevendorff 2018-05-09 21:12:13 +02:00 committed by GitHub
commit 2002d9b359
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,7 +74,9 @@ kpxcEvent.invoke = function(handler, callback, senderTabId, args, secondTime) {
else {
console.log('undefined handler for tab ' + tab.id);
}
}).catch((e) => {console.log(e);});
}).catch((e) => {
console.log(e);
});
};
kpxcEvent.onShowNotification = function(callback, tab, message) {
@ -162,13 +164,18 @@ kpxcEvent.onReconnect = function(callback, tab) {
if (gdRes) {
keepass.testAssociation((response) => {
keepass.isConfigured().then((configured) => {
browser.tabs.sendMessage(tab.id, {
action: 'redetect_fields'
});
kpxcEvent.showStatus(configured, tab, callback);
}).catch((e) => {console.log(e);});
}).catch((e) => {
console.log(e);
});
}, tab);
}
}, null);
});
}, 2000);
}, 500);
};
kpxcEvent.lockDatabase = function(callback, tab) {