summaryrefslogtreecommitdiff
path: root/src/client/scripts/hpml
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2020-04-20 21:36:58 +0900
committersyuilo <syuilotan@yahoo.co.jp>2020-04-20 21:36:58 +0900
commit0a4d119d86ddbc8e81a38d785626ff3d62cc2288 (patch)
tree873510f78ab36109a49f8e8d6c97d3a98ddae242 /src/client/scripts/hpml
parentrefactor(client): :sparkles: (diff)
downloadmisskey-0a4d119d86ddbc8e81a38d785626ff3d62cc2288.tar.gz
misskey-0a4d119d86ddbc8e81a38d785626ff3d62cc2288.tar.bz2
misskey-0a4d119d86ddbc8e81a38d785626ff3d62cc2288.zip
fix(lint): Use const
Diffstat (limited to 'src/client/scripts/hpml')
-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);