From bf1a93354ffdd1130d1e8fbf05d1ae21f6ff02b2 Mon Sep 17 00:00:00 2001 From: Jun Date: Thu, 12 Jan 2023 09:49:51 -0800 Subject: [PATCH] Update document-cloner.ts --- src/dom/document-cloner.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/dom/document-cloner.ts b/src/dom/document-cloner.ts index 5263f1b..1d5b8b2 100644 --- a/src/dom/document-cloner.ts +++ b/src/dom/document-cloner.ts @@ -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();