mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 16:13:24 +02:00
Fix all res/ files with ESLint rules with 0 errors.
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
module.exports = function RemoteDebugCtrl($scope, $timeout, gettext) {
|
||||
function startRemoteConnect() {
|
||||
if ($scope.control) {
|
||||
$scope.control.startRemoteConnect().then(function (result) {
|
||||
$scope.control.startRemoteConnect().then(function(result) {
|
||||
var url = result.lastData
|
||||
$scope.$apply(function () {
|
||||
$scope.$apply(function() {
|
||||
$scope.debugCommand = 'adb connect ' + url
|
||||
})
|
||||
})
|
||||
@@ -15,14 +15,14 @@ module.exports = function RemoteDebugCtrl($scope, $timeout, gettext) {
|
||||
|
||||
// TODO: Remove timeout and fix control initialization
|
||||
if (!startRemoteConnect()) {
|
||||
$timeout(function () {
|
||||
$timeout(function() {
|
||||
if (!startRemoteConnect()) {
|
||||
$timeout(startRemoteConnect, 1000)
|
||||
}
|
||||
}, 200)
|
||||
}
|
||||
|
||||
$scope.$watch('platform', function (newValue) {
|
||||
$scope.$watch('platform', function(newValue) {
|
||||
if (newValue === 'native') {
|
||||
$scope.remoteDebugTooltip =
|
||||
gettext('Run the following on your command line to debug the device from your IDE')
|
||||
|
||||
Reference in New Issue
Block a user