mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Remove redundant style nodes from clone
This commit is contained in:
@ -44,6 +44,8 @@ export default class ForeignObjectRenderer {
|
||||
resolve(this.canvas);
|
||||
};
|
||||
|
||||
img.onerror = reject;
|
||||
|
||||
img.src = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(
|
||||
new XMLSerializer().serializeToString(svg)
|
||||
)}`;
|
||||
|
Reference in New Issue
Block a user