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

fix web socket attachment to session object

This commit is contained in:
Luke Pulverenti 2013-12-26 13:46:38 -05:00
parent d9dac5269d
commit 6e4a7594fc
4 changed files with 13 additions and 5 deletions

View file

@ -673,7 +673,7 @@ var Dashboard = {
name: "Media Library",
divider: true,
href: "library.html",
selected: pageElem.id == "mediaLibraryPage" && !getParameterByName('userId')
selected: page.hasClass("mediaLibraryPage")
}, {
name: "Metadata",
href: "metadata.html",
@ -1248,6 +1248,8 @@ $(function () {
// Close the connection gracefully when possible
if (ApiClient.isWebSocketOpen() && !MediaPlayer.isPlaying()) {
console.log('Sending close web socket command');
ApiClient.closeWebSocket();
}
});