From a936d5d2fa99782893ecb14fd38865655aeeabd7 Mon Sep 17 00:00:00 2001 From: Zhe Li Date: Sat, 10 Jul 2021 02:11:17 +0800 Subject: [PATCH] fix #705 --- src/background.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/background.ts b/src/background.ts index 1358c02df..1f8ceb3b4 100644 --- a/src/background.ts +++ b/src/background.ts @@ -269,8 +269,8 @@ async function getTotp(text: string, silent = false) { entryData[hash].algorithm = algorithm; } if ( - (await EntryStorage.hasEncryptedEntry()) !== - encryption.getEncryptionStatus() + (await EntryStorage.hasEncryptedEntry()) && + !encryption.getEncryptionStatus() ) { !silent && chrome.tabs.sendMessage(id, { action: "errorenc" }); return false;