Skip to content

Commit

Permalink
ページ移動の検知を"pagehide"から"beforeunload"へ
Browse files Browse the repository at this point in the history
  • Loading branch information
satopian committed Sep 29, 2024
1 parent f75b808 commit a13ab36
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion petitnote/app/neo/neo.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ Neo.init2 = function () {
}

window.addEventListener(
"pagehide",
// "pagehide",
"beforeunload", //ブラウザを終了した時にも復元データを保存
function (e) {
if (!Neo.uploaded && Neo.painter.isDirty()) {
Neo.painter.saveSession();
Expand Down

0 comments on commit a13ab36

Please sign in to comment.