diff --git a/commands/edit-image-text/tweet.js b/commands/edit-image-text/tweet.js index 24f678f2..618dd7d9 100644 --- a/commands/edit-image-text/tweet.js +++ b/commands/edit-image-text/tweet.js @@ -90,10 +90,10 @@ module.exports = class TweetCommand extends Command { const y = 0; const imageWidth = 740; const radius = 15; - this.createImageBorder(imageCtx, radius, x, y, imageWidth, imageHeight); + this.roundedPath(imageCtx, radius, x, y, imageWidth, imageHeight); imageCtx.clip(); imageCtx.drawImage(imageData, 0, 0, imageWidth, imageHeight); - this.createImageBorder(imageCtx, radius, x, y, imageWidth, imageHeight); + this.roundedPath(imageCtx, radius, x, y, imageWidth, imageHeight); imageCtx.strokeStyle = '#303336'; imageCtx.lineWidth = 10; imageCtx.stroke();