From fb22009ec4799a624f00c228fbd7435b44c1cbac Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Mon, 10 Jan 2022 16:04:53 -0300
Subject: deposit design from belen, feature missing: kyc

---
 packages/taler-wallet-webextension/src/renderHtml.tsx | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

(limited to 'packages/taler-wallet-webextension/src/renderHtml.tsx')

diff --git a/packages/taler-wallet-webextension/src/renderHtml.tsx b/packages/taler-wallet-webextension/src/renderHtml.tsx
index 15986d5d1..ba98ae237 100644
--- a/packages/taler-wallet-webextension/src/renderHtml.tsx
+++ b/packages/taler-wallet-webextension/src/renderHtml.tsx
@@ -162,7 +162,12 @@ export function PageLink(props: {
   children?: ComponentChildren;
 }): VNode {
   // eslint-disable-next-line no-undef
-  const url = chrome.extension.getURL(`/static/wallet.html#/${props.pageName}`);
+
+  const url =
+    typeof chrome === "undefined"
+      ? undefined
+      : // eslint-disable-next-line no-undef
+        chrome.extension?.getURL(`/static/wallet.html#/${props.pageName}`);
   return (
     <a class="actionLink" href={url} target="_blank" rel="noopener noreferrer">
       {props.children}
-- 
cgit v1.2.3

