[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-merchant] branch master updated: replace location to avoid histor
From: |
gnunet |
Subject: |
[taler-merchant] branch master updated: replace location to avoid history loop |
Date: |
Thu, 08 Oct 2020 17:24:31 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository merchant.
The following commit(s) were added to refs/heads/master by this push:
new 3577c4d replace location to avoid history loop
3577c4d is described below
commit 3577c4d18830219d83ec1ba4ef9d35480a2db787
Author: Florian Dold <florian.dold@gmail.com>
AuthorDate: Thu Oct 8 20:54:23 2020 +0530
replace location to avoid history loop
---
contrib/offer_refund.en.must | 2 +-
contrib/offer_tip.en.must | 2 +-
contrib/request_payment.en.must | 6 +++---
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/contrib/offer_refund.en.must b/contrib/offer_refund.en.must
index 19af479..d0a6aaf 100644
--- a/contrib/offer_refund.en.must
+++ b/contrib/offer_refund.en.must
@@ -100,7 +100,7 @@ body {
try {
let resp = JSON.parse(req.responseText);
if (! resp.refund_pending) {
- document.location.reload(true);
+ window.location.reload(true);
}
} catch (e) {
console.error("could not parse response:", e);
diff --git a/contrib/offer_tip.en.must b/contrib/offer_tip.en.must
index b44f30c..eba57e8 100644
--- a/contrib/offer_tip.en.must
+++ b/contrib/offer_tip.en.must
@@ -96,7 +96,7 @@ body {
req.onreadystatechange = function () {
if (req.readyState === XMLHttpRequest.DONE) {
if (req.status === 410) {
- document.location.reload(true);
+ window.location.reload(true);
}
setTimeout(check, delayMs);
}
diff --git a/contrib/request_payment.en.must b/contrib/request_payment.en.must
index 253c7d4..ca5ac63 100644
--- a/contrib/request_payment.en.must
+++ b/contrib/request_payment.en.must
@@ -98,7 +98,7 @@ body {
if (req.readyState === XMLHttpRequest.DONE) {
if (req.status === 200) {
try {
- document.location.reload(true);
+ window.location.reload(true);
} catch (e) {
console.error("could not parse response:", e);
}
@@ -107,7 +107,7 @@ body {
try {
let resp = JSON.parse(req.responseText);
if (resp.fulfillment_url) {
- window.location = resp.fulfillment_url;
+ window.location.replace(resp.fulfillment_url);
}
} catch (e) {
console.error("could not parse response:", e);
@@ -117,7 +117,7 @@ body {
try {
let resp = JSON.parse(req.responseText);
if (resp.already_paid_order_id && resp.fulfillment_url) {
- window.location = resp.fulfillment_url;
+ window.location.replace(resp.fulfillment_url);
}
} catch (e) {
console.error("could not parse response:", e);
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-merchant] branch master updated: replace location to avoid history loop,
gnunet <=