[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-wallet-webex] branch master updated: only hide page
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-wallet-webex] branch master updated: only hide page when doing payment |
Date: |
Fri, 01 Dec 2017 03:17:37 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-webex.
The following commit(s) were added to refs/heads/master by this push:
new f438305b only hide page when doing payment
f438305b is described below
commit f438305b6e207bfcec8f0d3019c10d146210fd21
Author: Florian Dold <address@hidden>
AuthorDate: Fri Dec 1 03:17:32 2017 +0100
only hide page when doing payment
---
src/webex/notify.ts | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/webex/notify.ts b/src/webex/notify.ts
index ecc04e8a..a49716f3 100644
--- a/src/webex/notify.ts
+++ b/src/webex/notify.ts
@@ -184,7 +184,6 @@ function init() {
if (resp && resp.type === "pay") {
logVerbose && console.log("doing taler.pay with", resp.payDetail);
talerPay(resp.payDetail).then(handlePaymentResponse);
- document.documentElement.style.visibility = "hidden";
}
});
}
@@ -338,7 +337,7 @@ function talerPay(msg: any): Promise<any> {
const uri = new
URI(chrome.extension.getURL("/src/webex/pages/tip.html"));
const params = { tip_id: tipToken.tip_id, merchant_domain:
merchantDomain };
const redirectUrl = uri.query(params).href();
- window.location.href = redirectUrl;
+ //window.location.href = redirectUrl;
return;
}
@@ -366,6 +365,9 @@ function talerPay(msg: any): Promise<any> {
return;
}
+ // Don't show a flash of the fallback page when we're doing a payment.
+ document.documentElement.style.visibility = "hidden";
+
// current URL without fragment
const url = new URI(document.location.href).fragment("").href();
const res = await wxApi.queryPayment(url);
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-wallet-webex] branch master updated: only hide page when doing payment,
gnunet <=