summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/client/scripts/hpml/lib.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/scripts/hpml/lib.ts b/src/client/scripts/hpml/lib.ts
index 9c71cfaba5..8050ba8255 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);