1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-27 07:43:14 +00:00

Fix problem with "null" message when unloading under IE11

Fixes #457
This commit is contained in:
Jermolene 2014-03-04 22:21:18 +00:00
parent bbfb855c2e
commit 67f3d58f71

View File

@ -75,7 +75,7 @@ exports.startup = function() {
if($tw.browser) {
// Set up our beforeunload handler
window.addEventListener("beforeunload",function(event) {
var confirmationMessage = null;
var confirmationMessage = undefined;
if($tw.syncer.isDirty()) {
confirmationMessage = "You have unsaved changes in TiddlyWiki";
event.returnValue = confirmationMessage; // Gecko