mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-23 02:17:40 -07:00
fix(lint): Use const
This commit is contained in:
parent
81bcf87f41
commit
433c59f356
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ import { values, utils } from '@syuilo/aiscript';
|
||||||
Chart.pluginService.register({
|
Chart.pluginService.register({
|
||||||
beforeDraw: function (chart, easing) {
|
beforeDraw: function (chart, easing) {
|
||||||
if (chart.config.options.chartArea && chart.config.options.chartArea.backgroundColor) {
|
if (chart.config.options.chartArea && chart.config.options.chartArea.backgroundColor) {
|
||||||
var ctx = chart.chart.ctx;
|
const ctx = chart.chart.ctx;
|
||||||
ctx.save();
|
ctx.save();
|
||||||
ctx.fillStyle = chart.config.options.chartArea.backgroundColor;
|
ctx.fillStyle = chart.config.options.chartArea.backgroundColor;
|
||||||
ctx.fillRect(0, 0, chart.chart.width, chart.chart.height);
|
ctx.fillRect(0, 0, chart.chart.width, chart.chart.height);
|
||||||
|
|
Loading…
Reference in a new issue