Skip to content

Commit

Permalink
Updated onbeforeunload message.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel LaBarge committed Mar 5, 2017
1 parent ee4aeba commit b6d8053
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions resources/assets/scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@

require('./bootstrap');

window.onbeforeunload = function() {
return "Are you sure you want to disconnect?";
window.onbeforeunload = function(e) {
let message = 'Are you sure you want to disconnect?';
e.returnValue = message;
return message;
};

window.Server;
Expand Down

0 comments on commit b6d8053

Please sign in to comment.