blob: b053b9f8df0f3308655d81b38e4588500e8c7f45 [file] [log] [blame]
module.exports = function MenuCtrl($scope, $rootScope, SettingsService,
$location) {
SettingsService.bind($scope, {
target: 'lastUsedDevice'
})
SettingsService.bind($rootScope, {
target: 'platform',
defaultValue: 'native'
})
$scope.$on('$routeChangeSuccess', function() {
$scope.isControlRoute = $location.path().search('/control') !== -1
})
}