From a002825e9f612c84a6bd92cd6c5a8fba2f495cc8 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Wed, 12 Sep 2018 02:48:36 +0000 Subject: [PATCH] Fix lint --- commands/image-edit/nike-ad.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/image-edit/nike-ad.js b/commands/image-edit/nike-ad.js index 83fe0e7e..ff12bd76 100644 --- a/commands/image-edit/nike-ad.js +++ b/commands/image-edit/nike-ad.js @@ -54,7 +54,7 @@ module.exports = class NikeAdCommand extends Command { const ctx = canvas.getContext('2d'); drawImageWithTint(ctx, data, 'black', 0, 0, data.width, data.height); greyscale(ctx, 0, 0, data.width, data.height); - ctx.drawImage(base, data.width / 2 - base.width / 2, data.height - base.height); + ctx.drawImage(base, (data.width / 2) - (base.width / 2), data.height - base.height); ctx.font = `${Math.round(data.height / 25)}px Noto`; ctx.fillStyle = 'white'; ctx.textAlign = 'center';