mirror of https://github.com/keeweb/keeweb.git
closing the selection view on inactivity
This commit is contained in:
parent
550f93d4ae
commit
7adc77c823
|
@ -447,7 +447,14 @@ const ProtocolHandlers = {
|
||||||
|
|
||||||
focusKeeWeb();
|
focusKeeWeb();
|
||||||
|
|
||||||
|
const inactivityTimer = setTimeout(() => {
|
||||||
|
selectEntryView.emit('result', undefined);
|
||||||
|
}, Timeouts.KeeWebConnectRequest / 10);
|
||||||
|
|
||||||
const result = await selectEntryView.showAndGetResult();
|
const result = await selectEntryView.showAndGetResult();
|
||||||
|
|
||||||
|
clearTimeout(inactivityTimer);
|
||||||
|
|
||||||
entry = result?.entry;
|
entry = result?.entry;
|
||||||
if (!entry) {
|
if (!entry) {
|
||||||
throw makeError(Errors.userRejected);
|
throw makeError(Errors.userRejected);
|
||||||
|
|
Loading…
Reference in New Issue