Browse Source

fixes #15

session timeouts now apply when cancelling dmenu early
master
Andrew Kaiser 4 years ago
parent
commit
2ca8fa2d90
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      bin/cli.js

+ 2
- 2
bin/cli.js View File

@ -91,7 +91,7 @@ const pipeErrorToCommand = (command, e) =>
})
})
const runBitwardenDmenu = async () => {
async function runBitwardenDmenu() {
try {
await menu({
bwListArgs,
@ -108,7 +108,7 @@ const runBitwardenDmenu = async () => {
} catch (e) {
if (e instanceof CancelError) {
console.debug('cancelled bitwarden-dmenu early.')
return { lockBitwardenAfter: 0, clearClipboardAfter: null }
return { lockBitwardenAfter: sessionTimeout, clearClipboardAfter: null }
} else if (onErrorCommand) await pipeErrorToCommand(onErrorCommand, e)
else {
console.error('an error occurred:')


Loading…
Cancel
Save