X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/b44285e326c9c90633a038e90bd6f794425b5632..42d1c68068bb2ffcfbe50768f50233f9b8064b85:/src/editor/modules/rng/rng.js?ds=inline 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 */