diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-04-24 17:50:13 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-04-24 17:50:13 +0200 |
commit | cee7786b0015d63536cec77d5ad2c9f73f3f02ec (patch) | |
tree | bd013e51ccad9317c11787a3ba9524516f086685 /src/wxBackend.ts | |
parent | b60f5cf77b8a9a25aed8976aa132a7db0a3c2e86 (diff) | |
download | wallet-core-cee7786b0015d63536cec77d5ad2c9f73f3f02ec.tar.xz |
fix another firefox incompatibility
Diffstat (limited to 'src/wxBackend.ts')
-rw-r--r-- | src/wxBackend.ts | 9 |
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 ... } |