1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-13 22:28:14 +09:00

fix(client): Fix lint

This commit is contained in:
syuilo 2020-04-22 19:51:09 +09:00
parent 6e3ee05cb6
commit d19441f3ae

View File

@ -5,7 +5,7 @@ import { values, utils } from '@syuilo/aiscript';
// https://stackoverflow.com/questions/38493564/chart-area-background-color-chartjs
Chart.pluginService.register({
beforeDraw: function (chart, easing) {
beforeDraw: (chart, easing) => {
if (chart.config.options.chartArea && chart.config.options.chartArea.backgroundColor) {
const ctx = chart.chart.ctx;
ctx.save();