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 13:36:35 -05:00
parent 7537bab562
commit d84c5a7c1d
226 changed files with 51770 additions and 4157 deletions

View file

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

View file

@ -1472,13 +1472,13 @@
return stringEqualsIgnoreCase(s.Id, apiClient.serverInfo().Id);
});
if (!matchedServers.length) {
if (!matchedServers.length && !isConnectUserSupporter()) {
return {};
}
var match = matchedServers[0];
if (!match.DateLastLocalConnection) {
if (!match.DateLastLocalConnection && !isConnectUserSupporter()) {
return ApiClient.getJSON(ApiClient.getUrl('System/Endpoint')).then(function (info) {
@ -1498,6 +1498,19 @@
});
};
function isConnectUserSupporter() {
if (self.isLoggedIntoConnect()) {
var connectUser = self.connectUser();
if (connectUser && connectUser.IsSupporter) {
return true;
}
}
return false;
}
function updateDateLastLocalConnection(serverId) {
var credentials = credentialProvider.credentials();