diff options
author | Andrew Dolgov <[email protected]> | 2019-03-15 12:25:33 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2019-03-15 12:25:33 +0300 |
commit | 8e7fb5fef61352ccc75ebe8964ed447593338787 (patch) | |
tree | 1d399de867c1a5fc50211efa84258ac3f476cfd0 | |
parent | cdd2b47348d58c8a83b5fd66d8f1bc462b31714b (diff) |
sync state on quit (upd previous)
-rwxr-xr-x | reader.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -585,7 +585,7 @@ $(document).ready(function () { }); $(window).on("beforeunload", (e) => { - if (model.fileName() && model.currentPage() > 0 && !window._readyToQuit) { + if (model.currentPage() > 0 && !window._readyToQuit) { e.preventDefault(); window._readyToQuit = true; |