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
983edf6db2
commit
bf1a93354f
@ -136,7 +136,6 @@ export class DocumentCloner {
|
||||
}
|
||||
// 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);
|
||||
documentClone.append(documentClone.adoptNode(this.documentElement));
|
||||
documentClone.close();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user