diff options
author | Sebastian <sebasjm@gmail.com> | 2023-10-20 10:53:40 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-10-20 10:53:40 -0300 |
commit | d783cdc82b5e1c1c90cc13ee15e04381935fcbf8 (patch) | |
tree | f330d6e60dae65cb1e78cab7d48a8fc4e5af2edb /packages/taler-wallet-webextension/src/platform/chrome.ts | |
parent | e299b133dbb4769355e728e4545accaac2956248 (diff) | |
download | wallet-core-d783cdc82b5e1c1c90cc13ee15e04381935fcbf8.tar.xz |
fix typo: reject for promise instead of throw
Diffstat (limited to 'packages/taler-wallet-webextension/src/platform/chrome.ts')
-rw-r--r-- | packages/taler-wallet-webextension/src/platform/chrome.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/taler-wallet-webextension/src/platform/chrome.ts b/packages/taler-wallet-webextension/src/platform/chrome.ts index a50f225dc..b0934f107 100644 --- a/packages/taler-wallet-webextension/src/platform/chrome.ts +++ b/packages/taler-wallet-webextension/src/platform/chrome.ts @@ -364,8 +364,8 @@ async function sendMessageToBackground< let timedout = false; const timerId = setTimeout(() => { timedout = true; - throw TalerError.fromDetail(TalerErrorCode.GENERIC_TIMEOUT, {}); - }, 5 * 1000); //five seconds + reject(TalerError.fromDetail(TalerErrorCode.GENERIC_TIMEOUT, {}) ); + }, 20 * 1000); //five seconds chrome.runtime.sendMessage(messageWithId, (backgroundResponse) => { if (timedout) { return false; //already rejected |