Skip to content

Commit

Permalink
Fix 'canvas is not defined'
Browse files Browse the repository at this point in the history
  • Loading branch information
GarboMuffin committed Jul 8, 2021
1 parent 96e5aeb commit ada7c4d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/SVGSkin.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,9 @@ class SVGSkin extends Skin {
// regards to memory.
const textureData = this._context.getImageData(0, 0, this._canvas.width, this._canvas.height);

canvas.width = 0;
canvas.height = 0;
// TODO: not sure if this actually does anything meaningful
this._canvas.width = 0;
this._canvas.height = 0;

const textureOptions = {
auto: false,
Expand Down

0 comments on commit ada7c4d

Please sign in to comment.