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

rework notifications flyout

This commit is contained in:
Luke Pulverenti 2015-05-31 17:07:44 -04:00
parent 9b6cd65b9d
commit 8e0dc6d8e4
11 changed files with 115 additions and 189 deletions

View file

@ -1,6 +1,6 @@
(function () {
var unlockId = "premiumunlock";
var unlockId = "com.mb.android.unlock";
var updatedProducts = [];
function updateProductInfo(id, owned) {

View file

@ -7,6 +7,15 @@
return platform.indexOf('android') != -1;
}
function getPremiumUnlockFeatureId() {
if (isAndroid()) {
return "com.mb.android.unlock";
}
return 'premiumunlock';
}
function validatePlayback(deferred) {
// Don't require validation on android
@ -17,37 +26,16 @@
validateFeature({
id: 'premiumunlock'
id: getPremiumUnlockFeatureId()
}, deferred);
}
function validateLiveTV(deferred) {
// Don't require validation if not android
if (!isAndroid()) {
deferred.resolve();
return;
}
validateFeature({
id: 'premiumunlock'
}, deferred);
}
function validateSmb(deferred) {
// Don't require validation if not android
if (!isAndroid()) {
deferred.resolve();
return;
}
validateFeature({
id: 'premiumunlock'
id: getPremiumUnlockFeatureId()
}, deferred);
}
@ -215,8 +203,10 @@
}
};
var depends = isAndroid() ? 'thirdparty/cordova/android/iap' : 'thirdparty/cordova/iap';
requirejs([depends]);
if (isAndroid()) {
requirejs(['thirdparty/cordova/android/iap']);
} else {
requirejs(['thirdparty/cordova/iap']);
}
})();