diff --git a/src/client/scripts/hpml/lib.ts b/src/client/scripts/hpml/lib.ts index 9c71cfaba..8050ba825 100644 --- a/src/client/scripts/hpml/lib.ts +++ b/src/client/scripts/hpml/lib.ts @@ -7,7 +7,7 @@ import { values, utils } from '@syuilo/aiscript'; Chart.pluginService.register({ beforeDraw: function (chart, easing) { if (chart.config.options.chartArea && chart.config.options.chartArea.backgroundColor) { - var ctx = chart.chart.ctx; + const ctx = chart.chart.ctx; ctx.save(); ctx.fillStyle = chart.config.options.chartArea.backgroundColor; ctx.fillRect(0, 0, chart.chart.width, chart.chart.height);