diff --git a/js/websockets.js b/js/websockets.js index 6f4aa1b..c1d5995 100644 --- a/js/websockets.js +++ b/js/websockets.js @@ -667,6 +667,11 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout', } } + // Prevent user from accidentally leaving the page + window.onbeforeunload = function(event) { + event.preventDefault(); + }; + }] );