mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
Merge pull request #196 from jellyfin/fix_promise
Return inner promise in createConnectionManager
This commit is contained in:
commit
1ae37fea1b
@ -275,7 +275,7 @@ var AppInfo = {};
|
|||||||
var credentialProviderInstance = new credentialProvider();
|
var credentialProviderInstance = new credentialProvider();
|
||||||
var promises = [apphost.getSyncProfile(), apphost.init()];
|
var promises = [apphost.getSyncProfile(), apphost.init()];
|
||||||
|
|
||||||
Promise.all(promises).then(function (responses) {
|
return Promise.all(promises).then(function (responses) {
|
||||||
var deviceProfile = responses[0];
|
var deviceProfile = responses[0];
|
||||||
var capabilities = Dashboard.capabilities(apphost);
|
var capabilities = Dashboard.capabilities(apphost);
|
||||||
|
|
||||||
@ -293,7 +293,7 @@ var AppInfo = {};
|
|||||||
console.log("creating ApiClient singleton");
|
console.log("creating ApiClient singleton");
|
||||||
|
|
||||||
var apiClient = new apiClientFactory(Dashboard.serverAddress(), apphost.appName(), apphost.appVersion(), apphost.deviceName(), apphost.deviceId(), window.devicePixelRatio);
|
var apiClient = new apiClientFactory(Dashboard.serverAddress(), apphost.appName(), apphost.appVersion(), apphost.deviceName(), apphost.deviceId(), window.devicePixelRatio);
|
||||||
|
|
||||||
apiClient.enableAutomaticNetworking = false;
|
apiClient.enableAutomaticNetworking = false;
|
||||||
apiClient.manualAddressOnly = true;
|
apiClient.manualAddressOnly = true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user