Hide remember popup when database is closed

This commit is contained in:
varjolintu 2018-04-06 09:38:07 +03:00
parent 2596660a6e
commit 36801da0b2

View file

@ -217,7 +217,17 @@ kpxcEvent.onRemoveCredentialsFromTabInformation = function(callback, tab) {
};
kpxcEvent.onSetRememberPopup = function(callback, tab, username, password, url, usernameExists, credentialsList) {
browserAction.setRememberPopup(tab.id, username, password, url, usernameExists, credentialsList);
keepass.testAssociation((response) => {
if (response) {
keepass.isConfigured().then((configured) => {
if (configured) {
browserAction.setRememberPopup(tab.id, username, password, url, usernameExists, credentialsList);
}
}).catch((e) => {
console.log(e);
});
}
}, tab);
};
kpxcEvent.onLoginPopup = function(callback, tab, logins) {