mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
remove probing of live tv feeds
This commit is contained in:
parent
755f6fc79c
commit
2f83f86ee8
11 changed files with 129 additions and 80 deletions
13
dashboard-ui/thirdparty/cordova/android/iap.js
vendored
13
dashboard-ui/thirdparty/cordova/android/iap.js
vendored
|
@ -3,7 +3,7 @@
|
|||
var unlockId = "com.mb.android.unlock";
|
||||
var updatedProducts = [];
|
||||
|
||||
function updateProductInfo(id, owned) {
|
||||
function updateProductInfo(id, owned, price) {
|
||||
|
||||
updatedProducts = updatedProducts.filter(function (r) {
|
||||
return r.id != id;
|
||||
|
@ -11,7 +11,8 @@
|
|||
|
||||
var product = {
|
||||
id: id,
|
||||
owned: owned
|
||||
owned: owned,
|
||||
price: price
|
||||
};
|
||||
|
||||
updatedProducts.push(product);
|
||||
|
@ -19,12 +20,6 @@
|
|||
Events.trigger(IapManager, 'productupdated', [product]);
|
||||
}
|
||||
|
||||
function hasPurchased(id) {
|
||||
var product = getProduct(id);
|
||||
|
||||
return product != null && product.owned;
|
||||
}
|
||||
|
||||
function getProduct(id) {
|
||||
var products = updatedProducts.filter(function (r) {
|
||||
return r.id == id;
|
||||
|
@ -55,7 +50,7 @@
|
|||
|
||||
window.IapManager = {
|
||||
isPurchaseAvailable: isPurchaseAvailable,
|
||||
hasPurchased: hasPurchased,
|
||||
getProductInfo: getProduct,
|
||||
updateProduct: updateProductInfo,
|
||||
beginPurchase: beginPurchase,
|
||||
onPurchaseComplete: onPurchaseComplete
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue