mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 16:13:24 +02:00
Moved Remote Debug from Advanced to Dashboard for faster access.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
module.exports = function RemoteDebugCtrl($scope, $timeout) {
|
||||
function startRemoteConnect() {
|
||||
$scope.control.startRemoteConnect().then(function (result) {
|
||||
var url = result.lastData
|
||||
$scope.$apply(function () {
|
||||
$scope.debugCommand = 'adb connect ' + url
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
// TODO: Remove timeout and fix control initialization
|
||||
if ($scope.control) {
|
||||
startRemoteConnect()
|
||||
} else {
|
||||
$timeout(startRemoteConnect, 200)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user