commit 659435570440c5a5eacde3a2e6ef5b3f3430a45f parent 9b18c87deb904d83ae5748236dff70de7c5fa656 Author: Florian Dold <florian.dold@gmail.com> Date: Tue, 12 Dec 2017 17:37:06 +0100 only warn when actually necessary Diffstat:
| M | src/types.ts | | | 2 | ++ |
| M | src/webex/wxBackend.ts | | | 3 | ++- |
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/types.ts b/src/types.ts @@ -1787,6 +1787,8 @@ export interface PurchaseRecord { * Set to 0 if no refund was made on the purchase. */ timestamp_refund: number; + + userAccepted: boolean; } diff --git a/src/webex/wxBackend.ts b/src/webex/wxBackend.ts @@ -484,8 +484,9 @@ function handleBankRequest(wallet: Wallet, headerList: chrome.webRequest.HttpHea if (reservePub !== undefined) { console.log(`confirming reserve ${reservePub} via 201`); wallet.confirmReserve({reservePub}); + } else { + console.warn("got 'X-Taler-Operation: confirm-reserve' without 'X-Taler-Reserve-Pub'"); } - console.warn("got 'X-Taler-Operation: confirm-reserve' without 'X-Taler-Reserve-Pub'"); return; }