mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update live tv database
This commit is contained in:
parent
8e0dc6d8e4
commit
d4abbd5560
9 changed files with 116 additions and 25 deletions
19
dashboard-ui/thirdparty/cordova/android/iap.js
vendored
19
dashboard-ui/thirdparty/cordova/android/iap.js
vendored
|
@ -9,10 +9,14 @@
|
|||
return r.id != id;
|
||||
});
|
||||
|
||||
updatedProducts.push({
|
||||
var product = {
|
||||
id: id,
|
||||
owned: owned
|
||||
});
|
||||
};
|
||||
|
||||
updatedProducts.push(product);
|
||||
|
||||
Events.trigger(IapManager, 'productupdated', [product]);
|
||||
}
|
||||
|
||||
function hasPurchased(id) {
|
||||
|
@ -39,7 +43,14 @@
|
|||
}
|
||||
|
||||
function onPurchaseComplete(result) {
|
||||
alert(result);
|
||||
|
||||
if (result) {
|
||||
refreshPurchases();
|
||||
}
|
||||
}
|
||||
|
||||
function refreshPurchases() {
|
||||
NativeIapManager.isPurchased(unlockId, "window.IapManager.updateProduct");
|
||||
}
|
||||
|
||||
window.IapManager = {
|
||||
|
@ -50,6 +61,6 @@
|
|||
onPurchaseComplete: onPurchaseComplete
|
||||
};
|
||||
|
||||
NativeIapManager.isPurchased(unlockId, "window.IapManager.updateProduct");
|
||||
refreshPurchases();
|
||||
|
||||
})();
|
Loading…
Add table
Add a link
Reference in a new issue