Fix loading receipts
This commit is contained in:
parent
ff80f7e840
commit
431b444807
@ -12,6 +12,7 @@
|
|||||||
<allow-navigation href="https://helena.express/*" />
|
<allow-navigation href="https://helena.express/*" />
|
||||||
<allow-navigation href="https://*.stripe.com/*" />
|
<allow-navigation href="https://*.stripe.com/*" />
|
||||||
<allow-navigation href="https://*.stripe.network/*" />
|
<allow-navigation href="https://*.stripe.network/*" />
|
||||||
|
<allow-navigation href="data:*" />
|
||||||
<allow-intent href="http://*/*" />
|
<allow-intent href="http://*/*" />
|
||||||
<allow-intent href="https://*/*" />
|
<allow-intent href="https://*/*" />
|
||||||
<allow-intent href="tel:*" />
|
<allow-intent href="tel:*" />
|
||||||
|
@ -315,11 +315,12 @@ function loadReceiptHTMLIntoPopup(receiptid) {
|
|||||||
accountkey: getStorage("accountkey"),
|
accountkey: getStorage("accountkey"),
|
||||||
receiptid: receiptid
|
receiptid: receiptid
|
||||||
}, function (success) {
|
}, function (success) {
|
||||||
app.dialog.close();
|
|
||||||
if (success.status == "OK") {
|
if (success.status == "OK") {
|
||||||
$('#receiptvieweriframe').attr("src", "data:text/html," + encodeURIComponent(success.receipt.html));
|
$('#receiptvieweriframe').attr("src", "data:text/html;base64," + btoa(success.receipt.html));
|
||||||
app.popup.open("#receiptViewerPopup");
|
app.popup.open("#receiptViewerPopup");
|
||||||
|
app.dialog.close();
|
||||||
} else {
|
} else {
|
||||||
|
app.dialog.close();
|
||||||
app.dialog.alert(success.msg, "Error");
|
app.dialog.alert(success.msg, "Error");
|
||||||
sendErrorReport("Receipts", "Loading receipt", success.msg);
|
sendErrorReport("Receipts", "Loading receipt", success.msg);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user