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