Skip to content

Commit

Permalink
Update logic.js
Browse files Browse the repository at this point in the history
Fix #210.
  • Loading branch information
mclemente committed Oct 23, 2023
1 parent 6cd591f commit 3abb2ba
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/module/logic.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,11 +349,10 @@ export class HealthEstimate {
if (!isNaN(this.fontSize) && this.fontSize.match(/[0-9]*\.?[0-9]+(px|%)+/i)) {
this.fontSize = Number(this.fontSize.replace(/(px|%)+/i, ""));
} else {
ui.notifications.warn(
console.warn(
`Health Estimate | ${game.i18n.format("healthEstimate.notifications.invalidFontSize", {
fontSize: this.fontSize,
})}`,
{ permanent: true }
})}`
);
this.fontSize = 24;
}
Expand Down

0 comments on commit 3abb2ba

Please sign in to comment.