From 3e6e0a3891fad5d946d0dc8734c55c61e67c5e45 Mon Sep 17 00:00:00 2001 From: rei1024 Date: Thu, 3 Oct 2024 23:28:47 +0900 Subject: [PATCH] fix: bug --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 6380543..751f5d0 100644 --- a/src/main.ts +++ b/src/main.ts @@ -80,7 +80,7 @@ document.addEventListener("keydown", (e) => { // ダイアログ制御 $historySizeInput.addEventListener("input", () => { let historySize = parseInt($historySizeInput.value, 10); - if (Number.isNaN(app.historySize)) { + if (Number.isNaN(historySize)) { historySize = 1; } app.historySize = Math.min(Math.max(historySize, 1), 500);