summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/headless/NodeHttpLib.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-01-07 19:50:53 +0100
committerFlorian Dold <florian@dold.me>2021-01-07 19:50:53 +0100
commit324f44ae6954ef7a75a67838a7f0cbf2a6dc6d76 (patch)
tree184150b6df991960cd3fb4356544dab8cc655ed7 /packages/taler-wallet-core/src/headless/NodeHttpLib.ts
parent265034104241eabffab32693f3a5a1af85cd7749 (diff)
downloadwallet-core-324f44ae6954ef7a75a67838a7f0cbf2a6dc6d76.tar.gz
wallet-core-324f44ae6954ef7a75a67838a7f0cbf2a6dc6d76.tar.bz2
wallet-core-324f44ae6954ef7a75a67838a7f0cbf2a6dc6d76.zip
backup cycle
Diffstat (limited to 'packages/taler-wallet-core/src/headless/NodeHttpLib.ts')
-rw-r--r--packages/taler-wallet-core/src/headless/NodeHttpLib.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/headless/NodeHttpLib.ts b/packages/taler-wallet-core/src/headless/NodeHttpLib.ts
index 68a549274..95626cc4d 100644
--- a/packages/taler-wallet-core/src/headless/NodeHttpLib.ts
+++ b/packages/taler-wallet-core/src/headless/NodeHttpLib.ts
@@ -133,7 +133,7 @@ export class NodeHttpLib implements HttpRequestLibrary {
return responseJson;
};
const makeBytes = async () => {
- if (!(resp.data instanceof ArrayBuffer)) {
+ if (typeof resp.data.byteLength !== "number") {
throw Error("expected array buffer");
}
const buf = resp.data;