1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-22 23:09:41 +02:00

fix(console): fix issue with undefined socket (#248)

This commit is contained in:
Anthony Lapenna 2016-10-01 21:44:23 +13:00 committed by GitHub
parent 739a5ec299
commit 7cd2da4c6e
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@ function ($scope, $stateParams, Settings, Container, Exec, $timeout, Messages) {
// Ensure the socket is closed before leaving the view
$scope.$on('$stateChangeStart', function (event, next, current) {
if (socket !== null) {
if (socket && socket !== null) {
socket.close();
}
});