diff options
Diffstat (limited to 'extension/content_scripts/notify.ts')
-rw-r--r-- | extension/content_scripts/notify.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/extension/content_scripts/notify.ts b/extension/content_scripts/notify.ts index 45e9145fb..88dd0503d 100644 --- a/extension/content_scripts/notify.ts +++ b/extension/content_scripts/notify.ts @@ -76,6 +76,8 @@ document.addEventListener('taler-execute-payment', function(e: CustomEvent) { switch (r.status) { case 200: detail.success = true; + // Not supported by some browsers ... + detail.fulfillmentUrl = (<any>r).responseURL; break; case 301: detail.success = true; @@ -86,8 +88,8 @@ document.addEventListener('taler-execute-payment', function(e: CustomEvent) { 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})); }; }); |