Fix problem with "null" message when unloading under IE11

Fixes #457
print-window-tiddler
Jermolene 2014-03-04 22:21:18 +00:00
rodzic bbfb855c2e
commit 67f3d58f71
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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