Skip to content

Commit a2ce95e

Browse files
authored
CCM-12397: fix image generation (#60)
1 parent 3031f2f commit a2ce95e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ function drawCanvas(id, callback) {
274274
let newWidth = width * pixelRatio;
275275
let newHeight = height * pixelRatio;
276276

277-
let canvas = (canvas = new OffscreenCanvas(newWidth, newHeight)); // document.createElement('canvas'); // Create a Canvas element.
277+
let canvas = new OffscreenCanvas(newWidth, newHeight); // document.createElement('canvas'); // Create a Canvas element.
278278
let ctx = canvas.getContext("2d"); // For Canvas returns 2D graphic.
279279

280280
// Now that its high res we need to compensate so our images can be drawn as

0 commit comments

Comments
 (0)