aboutsummaryrefslogtreecommitdiff
path: root/extension/content_scripts/notify.js
diff options
context:
space:
mode:
Diffstat (limited to 'extension/content_scripts/notify.js')
-rw-r--r--extension/content_scripts/notify.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/extension/content_scripts/notify.js b/extension/content_scripts/notify.js
index 676fd7653..fdd504cd7 100644
--- a/extension/content_scripts/notify.js
+++ b/extension/content_scripts/notify.js
@@ -68,6 +68,8 @@ document.addEventListener('taler-execute-payment', function (e) {
switch (r.status) {
case 200:
detail.success = true;
+ // Not supported by some browsers ...
+ detail.fulfillmentUrl = r.responseURL;
break;
case 301:
detail.success = true;
@@ -78,8 +80,8 @@ document.addEventListener('taler-execute-payment', function (e) {
detail.success = false;
break;
}
- console.log("status was:", r.status);
- console.log("detail:", JSON.stringify(detail));
+ detail.status = r.status;
+ detail.responseText = r.responseText;
document.dispatchEvent(new CustomEvent("taler-payment-result", { detail: detail }));
};
});