aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-12-01 03:18:15 +0100
committerFlorian Dold <florian.dold@gmail.com>2017-12-01 03:18:15 +0100
commitdf8ddcb5a5eb5e6b0f22c0597ac72cf324779f99 (patch)
tree6f16319f9ce3133c4c4617129a516e692cfc3ac1 /src
parentf438305b6e207bfcec8f0d3019c10d146210fd21 (diff)
Revert "only hide page when doing payment"
This reverts commit f438305b6e207bfcec8f0d3019c10d146210fd21.
Diffstat (limited to 'src')
-rw-r--r--src/webex/notify.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/webex/notify.ts b/src/webex/notify.ts
index a49716f32..ecc04e8a2 100644
--- a/src/webex/notify.ts
+++ b/src/webex/notify.ts
@@ -184,6 +184,7 @@ 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";
}
});
}
@@ -337,7 +338,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;
}
@@ -365,9 +366,6 @@ 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);