mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
added dashboard info page
This commit is contained in:
parent
0073dc3476
commit
1fa7dcdb2b
8 changed files with 125 additions and 63 deletions
|
@ -797,7 +797,21 @@ var Dashboard = {
|
|||
|
||||
systemInfo = systemInfo || Dashboard.lastSystemInfo;
|
||||
|
||||
ApiClient.openWebSocket(systemInfo.WebSocketPortNumber);
|
||||
var location = window.location;
|
||||
|
||||
var webSocketUrl = "ws://" + location.hostname;
|
||||
|
||||
if (systemInfo.HttpServerPortNumber != systemInfo.WebSocketPortNumber) {
|
||||
|
||||
if (location.port) {
|
||||
webSocketUrl += ':' + location.port;
|
||||
}
|
||||
|
||||
} else {
|
||||
webSocketUrl += ':' + systemInfo.WebSocketPortNumber;
|
||||
}
|
||||
|
||||
ApiClient.openWebSocket(webSocketUrl);
|
||||
},
|
||||
|
||||
onWebSocketMessageReceived: function (e, data) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue