mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Merge pull request #104 from keepassxreboot/redetect_after_reload
Redetect credential fields after reload
This commit is contained in:
commit
2002d9b359
1 changed files with 10 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue