mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
adjust var declarations for some specific cases
This commit is contained in:
parent
9878cfc012
commit
5a258d6522
@ -270,12 +270,12 @@ var AppInfo = {};
|
|||||||
|
|
||||||
function createConnectionManager() {
|
function createConnectionManager() {
|
||||||
return require(["connectionManagerFactory", "apphost", "credentialprovider", "events", "userSettings"], function (ConnectionManager, apphost, credentialProvider, events, userSettings) {
|
return require(["connectionManagerFactory", "apphost", "credentialprovider", "events", "userSettings"], function (ConnectionManager, apphost, credentialProvider, events, userSettings) {
|
||||||
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) {
|
Promise.all(promises).then(function (responses) {
|
||||||
var deviceProfile = responses[0],
|
var deviceProfile = responses[0];
|
||||||
capabilities = Dashboard.capabilities(apphost);
|
var capabilities = Dashboard.capabilities(apphost);
|
||||||
|
|
||||||
capabilities.DeviceProfile = deviceProfile;
|
capabilities.DeviceProfile = deviceProfile;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user