mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-30 16:00:46 +00:00
parent
bbfb855c2e
commit
67f3d58f71
@ -75,7 +75,7 @@ exports.startup = function() {
|
|||||||
if($tw.browser) {
|
if($tw.browser) {
|
||||||
// Set up our beforeunload handler
|
// Set up our beforeunload handler
|
||||||
window.addEventListener("beforeunload",function(event) {
|
window.addEventListener("beforeunload",function(event) {
|
||||||
var confirmationMessage = null;
|
var confirmationMessage = undefined;
|
||||||
if($tw.syncer.isDirty()) {
|
if($tw.syncer.isDirty()) {
|
||||||
confirmationMessage = "You have unsaved changes in TiddlyWiki";
|
confirmationMessage = "You have unsaved changes in TiddlyWiki";
|
||||||
event.returnValue = confirmationMessage; // Gecko
|
event.returnValue = confirmationMessage; // Gecko
|
||||||
|
Loading…
Reference in New Issue
Block a user