From b6d8053a5e16d0876f7a310c274682e52ae101e1 Mon Sep 17 00:00:00 2001 From: Daniel LaBarge Date: Sat, 4 Mar 2017 22:28:19 -0600 Subject: [PATCH] Updated onbeforeunload message. --- resources/assets/scripts/app.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/assets/scripts/app.js b/resources/assets/scripts/app.js index 4c0a288..9b77980 100644 --- a/resources/assets/scripts/app.js +++ b/resources/assets/scripts/app.js @@ -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;