gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated: webextension: close popup


From: gnunet
Subject: [taler-wallet-core] branch master updated: webextension: close popup
Date: Tue, 08 Mar 2022 23:26:07 +0100

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository wallet-core.

The following commit(s) were added to refs/heads/master by this push:
     new 7a27da5f webextension: close popup
7a27da5f is described below

commit 7a27da5fba288e39d744f0b70419b38e3f29aa87
Author: Florian Dold <florian@dold.me>
AuthorDate: Tue Mar 8 23:26:02 2022 +0100

    webextension: close popup
    
    only seems to work with callbacks, not with promises
---
 packages/taler-wallet-webextension/src/popupEntryPoint.tsx | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/packages/taler-wallet-webextension/src/popupEntryPoint.tsx 
b/packages/taler-wallet-webextension/src/popupEntryPoint.tsx
index 02ab0df2..56d1e60e 100644
--- a/packages/taler-wallet-webextension/src/popupEntryPoint.tsx
+++ b/packages/taler-wallet-webextension/src/popupEntryPoint.tsx
@@ -172,15 +172,16 @@ function Application(): VNode {
 function RedirectToWalletPage(): VNode {
   const page = document.location.hash || "#/";
   useEffect(() => {
-    chrome.tabs
-      .create({
+    chrome.tabs.create(
+      {
         active: true,
         // eslint-disable-next-line no-undef
         url: chrome.runtime.getURL(`/static/wallet.html${page}`),
-      })
-      .then(() => {
+      },
+      () => {
         window.close();
-      });
+      },
+    );
   });
   return (
     <span>

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]