mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
updated nuget
This commit is contained in:
parent
a6d492c13d
commit
47c67da9a5
1 changed files with 2 additions and 8 deletions
|
@ -264,18 +264,12 @@
|
||||||
var serverAddress = apiClient.serverAddress();
|
var serverAddress = apiClient.serverAddress();
|
||||||
|
|
||||||
if (isValidIpAddress(serverAddress) && !isLocalIpAddress(serverAddress)) {
|
if (isValidIpAddress(serverAddress) && !isLocalIpAddress(serverAddress)) {
|
||||||
return new Promise(function (resolve, reject) {
|
return Promise.resolve(serverAddress);
|
||||||
|
|
||||||
resolve(serverAddress);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var cachedValue = getCachedValue(serverAddress);
|
var cachedValue = getCachedValue(serverAddress);
|
||||||
if (cachedValue) {
|
if (cachedValue) {
|
||||||
return new Promise(function (resolve, reject) {
|
return Promise.resolve(cachedValue);
|
||||||
|
|
||||||
resolve(cachedValue);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return apiClient.getJSON(apiClient.getUrl('System/Endpoint')).then(function (endpoint) {
|
return apiClient.getJSON(apiClient.getUrl('System/Endpoint')).then(function (endpoint) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue