mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-01 10:34:42 +00:00
Check for canvas presence before accessing multiplier
This commit is contained in:
parent
112d96be72
commit
5a3b5657c5
1 changed files with 1 additions and 1 deletions
|
|
@ -1061,7 +1061,7 @@
|
|||
return;
|
||||
}
|
||||
|
||||
var mult = this.canvas._currentMultiplier || 1;
|
||||
var mult = (this.canvas && this.canvas._currentMultiplier) || 1;
|
||||
|
||||
ctx.shadowColor = this.shadow.color;
|
||||
ctx.shadowBlur = this.shadow.blur * mult * (this.scaleX + this.scaleY) / 2;
|
||||
|
|
|
|||
Loading…
Reference in a new issue