Skip to content

Commit

Permalink
fix: bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rei1024 committed Oct 3, 2024
1 parent 6148436 commit 3e6e0a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3e6e0a3

Please sign in to comment.