mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update connect
This commit is contained in:
parent
2f83f86ee8
commit
c7da2478bb
21 changed files with 72 additions and 28 deletions
|
@ -372,11 +372,15 @@
|
|||
throw new Error('connectionMode cannot be null');
|
||||
}
|
||||
|
||||
logger.log('Begin updateServerInfo');
|
||||
logger.log('Begin updateServerInfo. connectionMode: ' + connectionMode);
|
||||
|
||||
self.serverInfo(server);
|
||||
|
||||
var serverUrl = MediaBrowser.ServerInfo.getServerAddress(connectionMode);
|
||||
var serverUrl = MediaBrowser.ServerInfo.getServerAddress(server, connectionMode);
|
||||
|
||||
if (!serverUrl) {
|
||||
throw new Error('serverUrl cannot be null. serverInfo: ' + JSON.stringify(server));
|
||||
}
|
||||
logger.log('Setting server address to ' + serverUrl);
|
||||
self.serverAddress(serverUrl);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue