Prevent user from accidentally leaving the page

This commit is contained in:
Tor Hveem 2013-10-28 13:55:46 +01:00
parent d57127cc84
commit 69200c7854

View file

@ -667,6 +667,11 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
}
}
// Prevent user from accidentally leaving the page
window.onbeforeunload = function(event) {
event.preventDefault();
};
}]
);