mirror of
https://github.com/Karaka-Management/oms-Draw.git
synced 2026-02-12 21:28:41 +00:00
Fix undefined img bug
This commit is contained in:
parent
cfdcbd9a36
commit
8e22bde18e
|
|
@ -107,7 +107,7 @@
|
||||||
const img = this.canvas.getAttribute('data-src'),
|
const img = this.canvas.getAttribute('data-src'),
|
||||||
self = this;
|
self = this;
|
||||||
|
|
||||||
if(typeof img !== 'undefined' && img.length > 0) {
|
if(img !== null && typeof img !== 'undefined' && img.length > 0) {
|
||||||
let imgObj = new Image();
|
let imgObj = new Image();
|
||||||
|
|
||||||
imgObj.addEventListener('load', function() {
|
imgObj.addEventListener('load', function() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user