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-12-11 00:27:08 -05:00
parent 6dd7d96397
commit 1f519c45c7
2 changed files with 12 additions and 9 deletions

View file

@ -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();