Fix suggestions and cleanup
This commit is contained in:
parent
21152040ec
commit
feb49dd429
12 changed files with 18 additions and 39 deletions
|
@ -273,14 +273,11 @@ function initClient() {
|
|||
function createConnectionManager() {
|
||||
return require(['connectionManagerFactory', 'apphost', 'credentialprovider', 'events', 'userSettings'], function (ConnectionManager, appHost, credentialProvider, events, userSettings) {
|
||||
var credentialProviderInstance = new credentialProvider();
|
||||
var promises = [appHost.default.getSyncProfile(), appHost.default.init()];
|
||||
var promises = [appHost.default.init()];
|
||||
|
||||
return Promise.all(promises).then(function (responses) {
|
||||
var deviceProfile = responses[0];
|
||||
var capabilities = Dashboard.capabilities(appHost);
|
||||
|
||||
capabilities.DeviceProfile = deviceProfile;
|
||||
|
||||
var connectionManager = new ConnectionManager(credentialProviderInstance, appHost.default.appName(), appHost.default.appVersion(), appHost.default.deviceName(), appHost.default.deviceId(), capabilities);
|
||||
|
||||
defineConnectionManager(connectionManager);
|
||||
|
@ -481,7 +478,7 @@ function initClient() {
|
|||
require(['webSettings'], function (webSettings) {
|
||||
webSettings.getPlugins().then(function (list) {
|
||||
// these two plugins are dependent on features
|
||||
if (!appHost.supports('remotecontrol')) {
|
||||
if (!appHost.default.supports('remotecontrol')) {
|
||||
list.splice(list.indexOf('sessionPlayer'), 1);
|
||||
|
||||
if (!browser.chrome && !browser.opera) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue