From 67f3d58f7153ca4d50ce5a14ed72d9d4b6ad9b71 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Tue, 4 Mar 2014 22:21:18 +0000 Subject: [PATCH] Fix problem with "null" message when unloading under IE11 Fixes #457 --- core/modules/startup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/startup.js b/core/modules/startup.js index 83223f1f4..26c590691 100755 --- a/core/modules/startup.js +++ b/core/modules/startup.js @@ -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