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

update connect

This commit is contained in:
Luke Pulverenti 2015-06-04 16:27:46 -04:00
parent 2f83f86ee8
commit c7da2478bb
21 changed files with 72 additions and 28 deletions

View file

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