commit cee7786b0015d63536cec77d5ad2c9f73f3f02ec
parent b60f5cf77b8a9a25aed8976aa132a7db0a3c2e86
Author: Florian Dold <florian.dold@gmail.com>
Date: Mon, 24 Apr 2017 17:50:13 +0200
fix another firefox incompatibility
Diffstat:
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git 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 ...
}