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:
committed by
Marcos Nils
parent
caf42df624
commit
99ea172c30
@@ -23,7 +23,7 @@
|
|||||||
$scope.newInstanceBtnText = '+ Add new instance';
|
$scope.newInstanceBtnText = '+ Add new instance';
|
||||||
$scope.deleteInstanceBtnText = 'Delete';
|
$scope.deleteInstanceBtnText = 'Delete';
|
||||||
$scope.isInstanceBeingDeleted = false;
|
$scope.isInstanceBeingDeleted = false;
|
||||||
|
|
||||||
var selectedKeyboardShortcuts = KeyboardShortcutService.getCurrentShortcuts();
|
var selectedKeyboardShortcuts = KeyboardShortcutService.getCurrentShortcuts();
|
||||||
|
|
||||||
angular.element($window).bind('resize', function() {
|
angular.element($window).bind('resize', function() {
|
||||||
@@ -55,6 +55,8 @@
|
|||||||
KeyboardShortcutService.setResizeFunc($scope.resize);
|
KeyboardShortcutService.setResizeFunc($scope.resize);
|
||||||
|
|
||||||
$scope.closeSession = function() {
|
$scope.closeSession = function() {
|
||||||
|
// Remove alert before closing browser tab
|
||||||
|
window.onbeforeunload = null;
|
||||||
$scope.socket.emit('session close');
|
$scope.socket.emit('session close');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user