mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
switch methods to fetch
This commit is contained in:
parent
6acc4bf69d
commit
dd09b038d5
91 changed files with 349 additions and 314 deletions
|
@ -210,7 +210,7 @@
|
|||
return;
|
||||
}
|
||||
|
||||
apiClient.getPublicSystemInfo().done(function (systemInfo) {
|
||||
apiClient.getPublicSystemInfo().then(function (systemInfo) {
|
||||
|
||||
var credentials = credentialProvider.credentials();
|
||||
existingServer.Id = systemInfo.Id;
|
||||
|
@ -1385,7 +1385,7 @@
|
|||
|
||||
if (!match.DateLastLocalConnection) {
|
||||
|
||||
ApiClient.getJSON(ApiClient.getUrl('System/Endpoint')).done(function (info) {
|
||||
ApiClient.fetchJSON(ApiClient.getUrl('System/Endpoint')).then(function (info) {
|
||||
|
||||
if (info.IsInNetwork) {
|
||||
|
||||
|
@ -1395,7 +1395,7 @@
|
|||
deferred.resolveWith(null, [{}]);
|
||||
}
|
||||
|
||||
}).fail(function () {
|
||||
}, function () {
|
||||
|
||||
deferred.resolveWith(null, [{}]);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue