From e9f695fc927a67625bcf8efe07f8f4bd47cb6fec Mon Sep 17 00:00:00 2001 From: satopian Date: Sun, 29 Sep 2024 14:27:22 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=9A=E3=83=BC=E3=82=B8=E7=A7=BB=E5=8B=95?= =?UTF-8?q?=E3=81=AE=E6=A4=9C=E7=9F=A5=E3=82=92"pagehide"=E3=81=8B?= =?UTF-8?q?=E3=82=89"beforeunload"=E3=81=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- potiboard5/neo.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/potiboard5/neo.js b/potiboard5/neo.js index a0d86ab5..92d7ceff 100644 --- a/potiboard5/neo.js +++ b/potiboard5/neo.js @@ -144,7 +144,8 @@ Neo.init2 = function () { } window.addEventListener( - "pagehide", + // "pagehide", + "beforeunload", //ブラウザを終了した時にも復元データを保存 function (e) { if (!Neo.uploaded && Neo.painter.isDirty()) { Neo.painter.saveSession();