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();
|
||||
|
||||
if (isValidIpAddress(serverAddress) && !isLocalIpAddress(serverAddress)) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
|
||||
resolve(serverAddress);
|
||||
});
|
||||
return Promise.resolve(serverAddress);
|
||||
}
|
||||
|
||||
var cachedValue = getCachedValue(serverAddress);
|
||||
if (cachedValue) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
|
||||
resolve(cachedValue);
|
||||
});
|
||||
return Promise.resolve(cachedValue);
|
||||
}
|
||||
|
||||
return apiClient.getJSON(apiClient.getUrl('System/Endpoint')).then(function (endpoint) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue