diff options
author | Sebastian <sebasjm@gmail.com> | 2022-04-15 18:04:42 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-04-18 16:20:53 -0300 |
commit | 9d997280d36b3bd41532017a167410db4dcec696 (patch) | |
tree | 55c72b7bdea1b0e65756f10a6dfc03dc30e9ba9e /packages/taler-wallet-webextension/src/components | |
parent | b3b1329acf9072e9a727b548d9d1b316ca396c33 (diff) | |
download | wallet-core-9d997280d36b3bd41532017a167410db4dcec696.tar.xz |
missing tests
Diffstat (limited to 'packages/taler-wallet-webextension/src/components')
-rw-r--r-- | packages/taler-wallet-webextension/src/components/ExchangeToS.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/taler-wallet-webextension/src/components/ExchangeToS.tsx b/packages/taler-wallet-webextension/src/components/ExchangeToS.tsx index 6aee838a1..d54d66dc5 100644 --- a/packages/taler-wallet-webextension/src/components/ExchangeToS.tsx +++ b/packages/taler-wallet-webextension/src/components/ExchangeToS.tsx @@ -17,6 +17,10 @@ import { Fragment, VNode, h } from "preact"; import { useState } from "preact/hooks"; export function ExchangeXmlTos({ doc }: { doc: Document }): VNode { + if (typeof window === "undefined") { + // in nodejs env we don't have xml api + return <div />; + } const termsNode = doc.querySelector("[ids=terms-of-service]"); if (!termsNode) { return ( |