mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
6dd7d96397
commit
1f519c45c7
2 changed files with 12 additions and 9 deletions
|
@ -266,7 +266,7 @@
|
|||
resolve(response);
|
||||
}, function (error) {
|
||||
clearTimeout(timeout);
|
||||
reject();
|
||||
reject(error);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
@ -448,11 +448,14 @@
|
|||
|
||||
}, function (error) {
|
||||
|
||||
console.log("Request failed to " + request.url);
|
||||
|
||||
// http://api.jquery.com/jQuery.ajax/
|
||||
if (enableReconnection) {
|
||||
if (error) {
|
||||
console.log("Request failed to " + request.url + ' ' + error.toString());
|
||||
} else {
|
||||
console.log("Request timed out to " + request.url + ' ' + error.toString());
|
||||
}
|
||||
|
||||
// http://api.jquery.com/jQuery.ajax/
|
||||
if (!error && enableReconnection) {
|
||||
console.log("Attempting reconnection");
|
||||
|
||||
var previousServerAddress = self.serverAddress();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue