Explorar el Código

remove obsolete code

Gildas hace 4 años
padre
commit
dd922423a9
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      lib/single-file/single-file-helper.js

+ 1 - 2
lib/single-file/single-file-helper.js

@@ -225,8 +225,7 @@ function getElementsInfo(win, doc, element, options, data = { usedFonts: new Map
 function getResourcesInfo(win, doc, element, options, data, elementHidden, computedStyle) {
 	if (element.tagName == "CANVAS") {
 		try {
-			const size = getSize(win, element, computedStyle);
-			data.canvases.push({ dataURI: element.toDataURL("image/png", ""), width: size.width, height: size.height });
+			data.canvases.push({ dataURI: element.toDataURL("image/png", "") });
 			element.setAttribute(CANVAS_ATTRIBUTE_NAME, data.canvases.length - 1);
 			data.markedElements.push(element);
 		} catch (error) {