Prevent user from accidentally leaving the page

with-route-provider
Tor Hveem 12 years ago
parent d57127cc84
commit 69200c7854
  1. 5
      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();
};
}]
);

Loading…
Cancel
Save