1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update polymer

This commit is contained in:
Luke Pulverenti 2015-10-05 22:50:20 -04:00
parent d2bb0d6805
commit d96a2b7946
28 changed files with 109 additions and 118 deletions

View file

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