mirror of
https://github.com/Karaka-Management/oms-Draw.git
synced 2026-01-23 19:48: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'),
|
||||
self = this;
|
||||
|
||||
if(typeof img !== 'undefined' && img.length > 0) {
|
||||
if(img !== null && typeof img !== 'undefined' && img.length > 0) {
|
||||
let imgObj = new Image();
|
||||
|
||||
imgObj.addEventListener('load', function() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user