X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/b44285e326c9c90633a038e90bd6f794425b5632..091b7b516be2b5c2053e2a9103f8a910efbad68a:/src/editor/modules/rng/rng.js diff --git a/src/editor/modules/rng/rng.js b/src/editor/modules/rng/rng.js index c040d65..5b0fdb0 100644 --- a/src/editor/modules/rng/rng.js +++ b/src/editor/modules/rng/rng.js @@ -239,9 +239,9 @@ return function(sandbox) { var txt = gettext('Do you really want to exit?'); if(documentIsDirty) { txt += ' ' + gettext('Document contains unsaved changes!'); + event.returnValue = txt; // FF + return txt; // Chrome } - event.returnValue = txt; // FF - return txt; // Chrome }); /* api */