We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3031f2f commit a2ce95eCopy full SHA for a2ce95e
docs/src/index.js
@@ -274,7 +274,7 @@ function drawCanvas(id, callback) {
274
let newWidth = width * pixelRatio;
275
let newHeight = height * pixelRatio;
276
277
- let canvas = (canvas = new OffscreenCanvas(newWidth, newHeight)); // document.createElement('canvas'); // Create a Canvas element.
+ let canvas = new OffscreenCanvas(newWidth, newHeight); // document.createElement('canvas'); // Create a Canvas element.
278
let ctx = canvas.getContext("2d"); // For Canvas returns 2D graphic.
279
280
// Now that its high res we need to compensate so our images can be drawn as
0 commit comments