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

rework some initial dependency loading

This commit is contained in:
Luke Pulverenti 2015-12-01 15:48:55 -05:00
parent 9227ac0989
commit 5200b37787
13 changed files with 121 additions and 467 deletions

View file

@ -130,15 +130,20 @@
return;
}
testDeviceId(device.uuid).then(function (isUnlocked) {
var legacyDeviceId = NativeIapManager.getLegacyDeviceId();
if (legacyDeviceId) {
testDeviceId(legacyDeviceId).then(function(isUnlocked) {
if (isUnlocked) {
deferred.resolveWith(null, [true]);
return;
}
if (isUnlocked) {
deferred.resolveWith(null, [true]);
return;
}
deferred.resolveWith(null, [false]);
});
} else {
deferred.resolveWith(null, [false]);
});
}
});
}