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://*.stripe.com/*" />
|
||||
<allow-navigation href="https://*.stripe.network/*" />
|
||||
<allow-navigation href="data:*" />
|
||||
<allow-intent href="http://*/*" />
|
||||
<allow-intent href="https://*/*" />
|
||||
<allow-intent href="tel:*" />
|
||||
|
@ -315,11 +315,12 @@ function loadReceiptHTMLIntoPopup(receiptid) {
|
||||
accountkey: getStorage("accountkey"),
|
||||
receiptid: receiptid
|
||||
}, function (success) {
|
||||
app.dialog.close();
|
||||
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.dialog.close();
|
||||
} else {
|
||||
app.dialog.close();
|
||||
app.dialog.alert(success.msg, "Error");
|
||||
sendErrorReport("Receipts", "Loading receipt", success.msg);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user