1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 05:19:39 +02:00

* chore(eslint): update esllint and remove unused variables

* chore(eslint-config): change no-unused-vars to warn

* chore(eslint): remove unused variables

* chore(eslint): allow unused globals

* fixup! chore(eslint): allow unused globals

* chore(eslint): remove commented unused vars

* fixup! chore(eslint): remove commented unused vars
This commit is contained in:
Chaim Lev-Ari 2018-08-22 18:33:06 +03:00 committed by Anthony Lapenna
parent 46da95ecfb
commit e58acd7dd6
67 changed files with 121 additions and 146 deletions

View file

@ -12,7 +12,7 @@ function ($scope, $transition$, ContainerService, ImageService, EndpointProvider
$scope.containerCommands = [];
// Ensure the socket is closed before leaving the view
$scope.$on('$stateChangeStart', function (event, next, current) {
$scope.$on('$stateChangeStart', function () {
if (socket && socket !== null) {
socket.close();
}
@ -69,7 +69,7 @@ function ($scope, $transition$, ContainerService, ImageService, EndpointProvider
socket = new WebSocket(url);
$scope.state.connected = true;
socket.onopen = function(evt) {
socket.onopen = function() {
term = new Terminal();
term.on('data', function (data) {
@ -88,10 +88,10 @@ function ($scope, $transition$, ContainerService, ImageService, EndpointProvider
socket.onmessage = function (e) {
term.write(e.data);
};
socket.onerror = function (error) {
socket.onerror = function () {
$scope.state.connected = false;
};
socket.onclose = function(evt) {
socket.onclose = function() {
$scope.state.connected = false;
};
};