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);