From 14b4dca77ca64977b062001e5ce1bf2d152bee1f Mon Sep 17 00:00:00 2001 From: MoyuScript Date: Sat, 5 Aug 2017 21:40:03 +0800 Subject: [PATCH] Use correct JS context to find cloned element in Edge --- src/Clone.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/Clone.js b/src/Clone.js index 1d0d3d8..ace03b1 100644 --- a/src/Clone.js +++ b/src/Clone.js @@ -111,30 +111,31 @@ export const cloneWindow = ( ); } return new Promise((resolve, reject) => { - const documentClone = cloneIframeContainer.contentWindow.document; + let cloneWindow = cloneIframeContainer.contentWindow; + const documentClone = cloneWindow.document; /* Chrome doesn't detect relative background-images assigned in inline