Remove close alert when user is signed out (#143)

* Remove close browser tab alert when signed out

* Remove whitespace line
This commit is contained in:
Guido Vilariño
2017-05-18 18:33:33 -03:00
committed by Marcos Nils
parent caf42df624
commit 99ea172c30

View File

@@ -23,7 +23,7 @@
$scope.newInstanceBtnText = '+ Add new instance';
$scope.deleteInstanceBtnText = 'Delete';
$scope.isInstanceBeingDeleted = false;
var selectedKeyboardShortcuts = KeyboardShortcutService.getCurrentShortcuts();
angular.element($window).bind('resize', function() {
@@ -55,6 +55,8 @@
KeyboardShortcutService.setResizeFunc($scope.resize);
$scope.closeSession = function() {
// Remove alert before closing browser tab
window.onbeforeunload = null;
$scope.socket.emit('session close');
}