Update document-cloner.ts

This commit is contained in:
Jun 2023-01-12 09:49:51 -08:00 committed by GitHub
parent 983edf6db2
commit bf1a93354f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,7 +136,6 @@ export class DocumentCloner {
} }
// Chrome scrolls the parent document for some reason after the write to the cloned window??? // Chrome scrolls the parent document for some reason after the write to the cloned window???
restoreOwnerScroll(this.referenceElement.ownerDocument, scrollX, scrollY); restoreOwnerScroll(this.referenceElement.ownerDocument, scrollX, scrollY);
documentClone.replaceChild(documentClone.adoptNode(this.documentElement), documentClone.documentElement);
documentClone.append(documentClone.adoptNode(this.documentElement)); documentClone.append(documentClone.adoptNode(this.documentElement));
documentClone.close(); documentClone.close();