Skip to content
Snippets Groups Projects
Verified Commit d69a8661 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

chore: simple change to double attribution

parent 31e7dca9
No related branches found
No related tags found
No related merge requests found
Pipeline #3823 failed
......@@ -39,8 +39,7 @@ export const bufferToDataUrl = (
const imageData = bufferToImageData(buffer, width);
const canvas = document.createElement("canvas");
canvas.width = imageData.width;
canvas.height = imageData.height;
[canvas.width, canvas.height] = [imageData.width, imageData.height];
const context = canvas.getContext("2d");
context?.putImageData(imageData, 0, 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment