mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Fix for double reconnect
This commit is contained in:
parent
389c99b7fd
commit
74ffbd09fe
2 changed files with 1 additions and 5 deletions
|
|
@ -153,8 +153,6 @@ kpxcEvent.onGetStatus = function(callback, tab, internalPoll = false, triggerUnl
|
|||
};
|
||||
|
||||
kpxcEvent.onReconnect = function(callback, tab) {
|
||||
keepass.connectToNative();
|
||||
|
||||
// Add a small timeout after reconnecting. Just to make sure. It's not pretty, I know :(
|
||||
setTimeout(() => {
|
||||
keepass.reconnect(callback, tab).then((configured) => {
|
||||
|
|
|
|||
|
|
@ -1153,9 +1153,7 @@ keepass.disableAutomaticReconnect = function() {
|
|||
};
|
||||
|
||||
keepass.reconnect = async function(callback, tab) {
|
||||
////keepass.connectToNative();
|
||||
const port = keepass.nativeConnect();
|
||||
console.log(port);
|
||||
keepass.connectToNative();
|
||||
keepass.generateNewKeyPair();
|
||||
keepass.changePublicKeys(tab, true).then(r => true).catch(e => false);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue