From 0a4d119d86ddbc8e81a38d785626ff3d62cc2288 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 20 Apr 2020 21:36:58 +0900 Subject: [PATCH] fix(lint): Use const --- src/client/scripts/hpml/lib.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);