mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix linting
This commit is contained in:
parent
c37e8f2f1b
commit
43d01146a2
4 changed files with 8 additions and 9 deletions
|
@ -358,8 +358,8 @@ define(["events", "appStorage"], function(events, appStorage) {
|
|||
})
|
||||
}, ApiClient.prototype.quickConnect = function (token) {
|
||||
if (!token) return Promise.reject();
|
||||
var url = this.getUrl("Users/AuthenticateWithQuickConnect"),
|
||||
instance = this;
|
||||
var url = this.getUrl("Users/AuthenticateWithQuickConnect");
|
||||
var instance = this;
|
||||
return new Promise(function(resolve, reject) {
|
||||
var postData = {
|
||||
Token: token
|
||||
|
@ -372,7 +372,8 @@ define(["events", "appStorage"], function(events, appStorage) {
|
|||
contentType: "application/json"
|
||||
}).then(function(result) {
|
||||
var afterOnAuthenticated = function() {
|
||||
redetectBitrate(instance), resolve(result)
|
||||
redetectBitrate(instance);
|
||||
return resolve(result);
|
||||
};
|
||||
instance.onAuthenticated ? instance.onAuthenticated(instance, result).then(afterOnAuthenticated) : afterOnAuthenticated()
|
||||
}, reject)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue