Skip to content

Commit

Permalink
fixed max + min
Browse files Browse the repository at this point in the history
  • Loading branch information
ChasarooniZ committed Aug 7, 2023
1 parent a559f2e commit cadff42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,5 +118,5 @@ export function getFontScale(scaleType, dmg, tok) {
if (scaleType === "none") {
return 1;
}
return max(1, min(scale + 1, maxFontScale))
return Math.max(1, Math.min(scale + 1, maxFontScale))
}

0 comments on commit cadff42

Please sign in to comment.