1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

make sure ._ osx files are properly ignored

This commit is contained in:
Luke Pulverenti 2015-11-04 18:49:06 -05:00
parent cb8119840a
commit 67524136ed
48 changed files with 1239 additions and 387 deletions

View file

@ -2,15 +2,6 @@
var updatedProducts = [];
function getStoreFeatureId(feature) {
if (feature == 'embypremieremonthly') {
return "emby.supporter.monthly";
}
return "com.mb.android.unlock";
}
function updateProductInfo(id, owned, price) {
updatedProducts = updatedProducts.filter(function (r) {
@ -30,7 +21,12 @@
function getProduct(feature) {
var id = getStoreFeatureId(feature);
var id;
if (feature == 'embypremieremonthly') {
id = "emby.premiere.monthly";
} else {
id = "com.emby.mobile.unlock";
}
var products = updatedProducts.filter(function (r) {
return r.id == id;
@ -45,7 +41,7 @@
refreshPurchases();
}
function isPurchaseAvailable(feature) {
function isPurchaseAvailable() {
return storeReady;
}
@ -69,8 +65,7 @@
}
function refreshPurchases() {
NativeIapManager.isPurchased(getStoreFeatureId("") + "|" + getStoreFeatureId("embypremieremonthly"), "window.IapManager.updateProduct");
//NativeIapManager.isPurchased(getStoreFeatureId("embypremieremonthly"), "window.IapManager.updateProduct");
NativeIapManager.getPurchaseInfos("window.IapManager.updateProduct");
}
function getSubscriptionOptions() {