mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update translations
This commit is contained in:
parent
8755e4c173
commit
25b182603e
5 changed files with 56 additions and 32 deletions
26
dashboard-ui/cordova/iap.js
vendored
26
dashboard-ui/cordova/iap.js
vendored
|
@ -59,6 +59,28 @@
|
|||
store.refresh();
|
||||
}
|
||||
|
||||
var transactionIds = {};
|
||||
|
||||
function updateOriginalTransactionInfo(transactionId, originalTransactionId) {
|
||||
|
||||
alert('updateOriginalTransactionInfo ' + transactionId + '-' + originalTransactionId);
|
||||
|
||||
if (!transactionId) {
|
||||
return;
|
||||
}
|
||||
if (!originalTransactionId) {
|
||||
return;
|
||||
}
|
||||
if (transactionId == 'null') {
|
||||
return;
|
||||
}
|
||||
if (originalTransactionId == 'null') {
|
||||
return;
|
||||
}
|
||||
|
||||
transactionIds[transactionId] = originalTransactionId;
|
||||
}
|
||||
|
||||
function validateProduct(product, callback) {
|
||||
|
||||
// product attributes:
|
||||
|
@ -78,6 +100,7 @@
|
|||
|
||||
var productId = product.id;
|
||||
var transactionId = product.transaction.id;
|
||||
transactionId = transactionIds[transactionId] || transactionId;
|
||||
var receipt = product.transaction.appStoreReceipt;
|
||||
var price = product.price;
|
||||
|
||||
|
@ -211,7 +234,8 @@
|
|||
getProductInfo: getProduct,
|
||||
beginPurchase: beginPurchase,
|
||||
restorePurchase: restorePurchase,
|
||||
getSubscriptionOptions: getSubscriptionOptions
|
||||
getSubscriptionOptions: getSubscriptionOptions,
|
||||
updateOriginalTransactionInfo: updateOriginalTransactionInfo
|
||||
};
|
||||
|
||||
initializeStore();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue