aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-04-24 17:50:13 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-04-24 17:50:13 +0200
commitcee7786b0015d63536cec77d5ad2c9f73f3f02ec (patch)
treebd013e51ccad9317c11787a3ba9524516f086685
parentb60f5cf77b8a9a25aed8976aa132a7db0a3c2e86 (diff)
downloadwallet-core-cee7786b0015d63536cec77d5ad2c9f73f3f02ec.tar.xz
fix another firefox incompatibility
-rw-r--r--src/wxBackend.ts9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/wxBackend.ts b/src/wxBackend.ts
index 173870b26..1aa10ce4c 100644
--- a/src/wxBackend.ts
+++ b/src/wxBackend.ts
@@ -407,7 +407,9 @@ function handleBankRequest(wallet: Wallet, headerList: chrome.webRequest.HttpHea
message: `Can't parse amount ("${amount}"): ${e.message}`,
};
let redirectUrl = uri.query(p).href();
- return {redirectUrl};
+ // FIXME: use direct redirect when https://bugzilla.mozilla.org/show_bug.cgi?id=707624 is fixed
+ chrome.tabs.update(tabId, {url: redirectUrl});
+ return;
}
let wtTypes = headers["x-taler-wt-types"];
if (!wtTypes) {
@@ -424,7 +426,10 @@ function handleBankRequest(wallet: Wallet, headerList: chrome.webRequest.HttpHea
};
let uri = new URI(chrome.extension.getURL("/src/pages/confirm-create-reserve.html"));
let redirectUrl = uri.query(params).href();
- return {redirectUrl};
+ console.log("redirecting to", redirectUrl);
+ // FIXME: use direct redirect when https://bugzilla.mozilla.org/show_bug.cgi?id=707624 is fixed
+ chrome.tabs.update(tabId, {url: redirectUrl});
+ return;
}
// no known headers found, not a taler request ...
}