mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Update document-cloner.ts
This commit is contained in:
parent
4b7e8e03b2
commit
2b80597541
@ -131,7 +131,7 @@ export class DocumentCloner {
|
||||
});
|
||||
|
||||
documentClone.open();
|
||||
documentClone.write(serializeDoctype(document.doctype));
|
||||
documentClone.write(serializeDoctype(document.doctype) as unknown as string);
|
||||
// Chrome scrolls the parent document for some reason after the write to the cloned window???
|
||||
restoreOwnerScroll(this.referenceElement.ownerDocument, scrollX, scrollY);
|
||||
documentClone.replaceChild(documentClone.adoptNode(this.documentElement), documentClone.documentElement);
|
||||
|
Loading…
Reference in New Issue
Block a user