Merge pull request #5353 from JDonadio/ref/window-service

ref $window.appConfig as service
This commit is contained in:
Gabriel Edgardo Bazán 2016-12-28 15:09:37 +02:00 committed by GitHub
commit f1626eb498
19 changed files with 53 additions and 49 deletions

View file

@ -1052,7 +1052,7 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
}
});
})
.run(function($rootScope, $state, $location, $log, $timeout, $ionicHistory, $ionicPlatform, $window, lodash, platformInfo, profileService, uxLanguage, gettextCatalog, openURLService, storageService, scannerService) {
.run(function($rootScope, $state, $location, $log, $timeout, $ionicHistory, $ionicPlatform, $window, appConfigService, lodash, platformInfo, profileService, uxLanguage, gettextCatalog, openURLService, storageService, scannerService) {
uxLanguage.init();
@ -1171,7 +1171,7 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
type: "menubar"
});
try {
nativeMenuBar.createMacBuiltin($window.appConfig.nameCase);
nativeMenuBar.createMacBuiltin(appConfigService.nameCase);
} catch (e) {
$log.debug('This is not OSX');
}