diff --git a/www/assets/app.js b/www/assets/app.js index a4f6c1b..9cac73d 100644 --- a/www/assets/app.js +++ b/www/assets/app.js @@ -137,18 +137,17 @@ $scope.showInstance = function(instance) { $scope.selectedInstance = instance; if (!instance.creatingTerminal) { - instance.creatingTerminal = true; if (!instance.term) { $timeout(function() { createTerminal(instance); instance.term.focus(); }, 0, false); - } else { - $timeout(function() { - instance.term.focus(); - }, 0, false); + return } } + $timeout(function() { + instance.term.focus(); + }, 0, false); } $scope.removeInstance = function(name) {