commit
						8887a09e8f
					
				| @ -2112,8 +2112,9 @@ var CanvasGraphics = (function CanvasGraphicsClosure() { | ||||
|       var heightScale = Math.max(Math.sqrt(c * c + d * d), 1); | ||||
| 
 | ||||
|       var imgToPaint, tmpCanvas; | ||||
|       // instanceof HTMLElement does not work in jsdom node.js module
 | ||||
|       if (imgData instanceof HTMLElement || !imgData.data) { | ||||
|       // typeof check is needed due to node.js support, see issue #8489
 | ||||
|       if ((typeof HTMLElement === 'function' && | ||||
|            imgData instanceof HTMLElement) || !imgData.data) { | ||||
|         imgToPaint = imgData; | ||||
|       } else { | ||||
|         tmpCanvas = this.cachedCanvases.getCanvas('inlineImage', | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user