Skip to content

Commit ada7c4d

Browse files
committed
Fix 'canvas is not defined'
1 parent 96e5aeb commit ada7c4d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/SVGSkin.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,9 @@ class SVGSkin extends Skin {
128128
// regards to memory.
129129
const textureData = this._context.getImageData(0, 0, this._canvas.width, this._canvas.height);
130130

131-
canvas.width = 0;
132-
canvas.height = 0;
131+
// TODO: not sure if this actually does anything meaningful
132+
this._canvas.width = 0;
133+
this._canvas.height = 0;
133134

134135
const textureOptions = {
135136
auto: false,

0 commit comments

Comments
 (0)