mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 16:43:26 +02:00
- Finally, most of the unit tests now passes (resolving dependencies also).
- Shims now exports angular module name, however some of them clash with the original.
This commit is contained in:
@@ -5,13 +5,14 @@ module.exports = function InfoCtrl($scope, LightboxImageService) {
|
||||
LightboxImageService.open(title, enhancedPhoto800)
|
||||
}
|
||||
|
||||
|
||||
var getSdStatus = function () {
|
||||
$scope.control.getSdStatus().then(function (result) {
|
||||
$scope.$apply(function () {
|
||||
$scope.sdCardMounted = (result.lastData === 'sd_mounted')
|
||||
if ($scope.control) {
|
||||
$scope.control.getSdStatus().then(function (result) {
|
||||
$scope.$apply(function () {
|
||||
$scope.sdCardMounted = (result.lastData === 'sd_mounted')
|
||||
})
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
getSdStatus()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user