mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-23 01:05:14 +02:00
All transaction-based ControlService methods now return promises directly, which makes it easier to integrate with other promises, is simpler and opens up new refactoring opportunities.
This commit is contained in:
@@ -86,9 +86,9 @@ module.exports = function ActivitiesCtrl($scope) {
|
||||
$scope.selectedPackageName + '/' + $scope.selectedActivityName
|
||||
}
|
||||
|
||||
var cmd = $scope.control.shell(command)
|
||||
return cmd.promise.then(function (result) {
|
||||
console.log(result)
|
||||
})
|
||||
return $scope.control.shell(command)
|
||||
.then(function (result) {
|
||||
console.log(result)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user