diff options
author | Sebastian <sebasjm@gmail.com> | 2024-03-11 15:05:51 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-03-11 15:05:51 -0300 |
commit | 2419381798660683eb6c12f97a8286a97169be57 (patch) | |
tree | f647d432ff8cc8d8d67b15ec59fddb1683811d0d /packages/taler-wallet-webextension/src/platform/chrome.ts | |
parent | f232d51c008872fe2ba5c1d12d8cafdc7fa274f0 (diff) | |
download | wallet-core-2419381798660683eb6c12f97a8286a97169be57.tar.xz |
add missing timeout parameters
Diffstat (limited to 'packages/taler-wallet-webextension/src/platform/chrome.ts')
-rw-r--r-- | packages/taler-wallet-webextension/src/platform/chrome.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/taler-wallet-webextension/src/platform/chrome.ts b/packages/taler-wallet-webextension/src/platform/chrome.ts index 8c418d3c8..ee071347a 100644 --- a/packages/taler-wallet-webextension/src/platform/chrome.ts +++ b/packages/taler-wallet-webextension/src/platform/chrome.ts @@ -274,7 +274,11 @@ async function sendMessageToBackground< let timedout = false; const timerId = setTimeout(() => { timedout = true; - reject(TalerError.fromDetail(TalerErrorCode.GENERIC_TIMEOUT, {})); + reject(TalerError.fromDetail(TalerErrorCode.GENERIC_TIMEOUT, { + requestMethod: "wallet", + requestUrl: message.operation, + timeoutMs: 20 * 1000, + })); }, 20 * 1000); chrome.runtime.sendMessage(messageWithId, (backgroundResponse) => { if (timedout) { |