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

update components

This commit is contained in:
Luke Pulverenti 2016-01-09 16:27:54 -05:00
parent d84c5a7c1d
commit bea44d2e39
4 changed files with 23 additions and 12 deletions

View file

@ -16,12 +16,12 @@
},
"devDependencies": {},
"ignore": [],
"version": "1.0.23",
"_release": "1.0.23",
"version": "1.0.24",
"_release": "1.0.24",
"_resolution": {
"type": "version",
"tag": "1.0.23",
"commit": "4c5ce6269addd8a897ee5d94eaf40edff5c29e0c"
"tag": "1.0.24",
"commit": "4b9b655cad98bd908e78352d5bbed028644505d4"
},
"_source": "git://github.com/MediaBrowser/Emby.ApiClient.Javascript.git",
"_target": "~1.0.3",

View file

@ -1466,19 +1466,30 @@
self.getRegistrationInfo = function (feature, apiClient) {
if (isConnectUserSupporter()) {
return new Promise(function (resolve, reject) {
resolve({
Name: feature,
IsRegistered: true,
IsTrial: false
});
});
}
return self.getAvailableServers().then(function (servers) {
var matchedServers = servers.filter(function (s) {
return stringEqualsIgnoreCase(s.Id, apiClient.serverInfo().Id);
});
if (!matchedServers.length && !isConnectUserSupporter()) {
if (!matchedServers.length) {
return {};
}
var match = matchedServers[0];
if (!match.DateLastLocalConnection && !isConnectUserSupporter()) {
if (!match.DateLastLocalConnection) {
return ApiClient.getJSON(ApiClient.getUrl('System/Endpoint')).then(function (info) {