mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
encode with qsv
This commit is contained in:
parent
67524136ed
commit
64dfb8ef38
42 changed files with 945 additions and 370 deletions
36
dashboard-ui/cordova/registrationservices.js
vendored
36
dashboard-ui/cordova/registrationservices.js
vendored
|
@ -24,32 +24,40 @@
|
|||
|
||||
var prefix = $.browser.android ? 'android' : 'ios';
|
||||
|
||||
// Get supporter status
|
||||
getRegistrationInfo(prefix + 'appunlock').done(function (registrationInfo) {
|
||||
IapManager.isUnlockedOverride(feature).done(function (isUnlocked) {
|
||||
|
||||
if (registrationInfo.IsRegistered) {
|
||||
if (isUnlocked) {
|
||||
deferred.resolve();
|
||||
return;
|
||||
}
|
||||
|
||||
IapManager.getSubscriptionOptions().done(function (subscriptionOptions) {
|
||||
// Get supporter status
|
||||
getRegistrationInfo(prefix + 'appunlock').done(function (registrationInfo) {
|
||||
|
||||
if (subscriptionOptions.filter(function (p) {
|
||||
return p.owned;
|
||||
}).length > 0) {
|
||||
if (registrationInfo.IsRegistered) {
|
||||
deferred.resolve();
|
||||
return;
|
||||
}
|
||||
|
||||
var dialogOptions = {
|
||||
title: Globalize.translate('HeaderUnlockApp')
|
||||
};
|
||||
IapManager.getSubscriptionOptions().done(function (subscriptionOptions) {
|
||||
|
||||
showInAppPurchaseInfo(subscriptionOptions, unlockableProductInfo, registrationInfo, dialogOptions, deferred);
|
||||
if (subscriptionOptions.filter(function (p) {
|
||||
return p.owned;
|
||||
}).length > 0) {
|
||||
deferred.resolve();
|
||||
return;
|
||||
}
|
||||
|
||||
var dialogOptions = {
|
||||
title: Globalize.translate('HeaderUnlockApp')
|
||||
};
|
||||
|
||||
showInAppPurchaseInfo(subscriptionOptions, unlockableProductInfo, registrationInfo, dialogOptions, deferred);
|
||||
});
|
||||
|
||||
}).fail(function () {
|
||||
deferred.reject();
|
||||
});
|
||||
|
||||
}).fail(function () {
|
||||
deferred.reject();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue