mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update polymer
This commit is contained in:
parent
d2bb0d6805
commit
d96a2b7946
28 changed files with 109 additions and 118 deletions
|
@ -166,7 +166,7 @@
|
|||
var accessToken = currentServerInfo.AccessToken;
|
||||
|
||||
if (accessToken) {
|
||||
headers['X-MediaBrowser-Token'] = accessToken;
|
||||
headers['X-Emby-Token'] = accessToken;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -356,6 +356,10 @@
|
|||
throw new Error("serverAddress is yet not set");
|
||||
}
|
||||
|
||||
if (url.toLowerCase().indexOf('/emby') == -1) {
|
||||
url += '/emby';
|
||||
}
|
||||
|
||||
if (name.charAt(0) != '/') {
|
||||
url += '/';
|
||||
}
|
||||
|
@ -407,7 +411,7 @@
|
|||
throw new Error("Cannot open web socket without access token.");
|
||||
}
|
||||
|
||||
var url = serverAddress.replace('http', 'ws');
|
||||
var url = self.getUrl("socket").replace("/socket", "").replace('http', 'ws');
|
||||
url += "?api_key=" + accessToken;
|
||||
url += "&deviceId=" + deviceId;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue