adjust var declarations for some specific cases

This commit is contained in:
vitorsemeano 2019-03-04 20:30:42 +00:00
parent 9878cfc012
commit 5a258d6522

View File

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