diff --git a/src/Clone.js b/src/Clone.js index ace03b147..bff692487 100644 --- a/src/Clone.js +++ b/src/Clone.js @@ -128,14 +128,17 @@ export const cloneWindow = ( if ( /(iPad|iPhone|iPod)/g.test(navigator.userAgent) && (cloneWindow.scrollY !== bounds.top || - cloneWindow.scrollX !== bounds.left) + cloneWindow.scrollX !== bounds.left) ) { documentClone.documentElement.style.top = -bounds.top + 'px'; documentClone.documentElement.style.left = -bounds.left + 'px'; documentClone.documentElement.style.position = 'absolute'; } } - if (referenceElementSearch[1] instanceof cloneWindow.HTMLElement || referenceElementSearch[1] instanceof HTMLElement) { + if ( + referenceElementSearch[1] instanceof cloneWindow.HTMLElement || + referenceElementSearch[1] instanceof HTMLElement + ) { resolve([cloneIframeContainer, referenceElementSearch[1]]); } else { reject( diff --git a/src/parsing/background.js b/src/parsing/background.js index c99308efc..98a1dcda0 100644 --- a/src/parsing/background.js +++ b/src/parsing/background.js @@ -292,7 +292,9 @@ const parseBackgroundImages = ( return { source, - repeat: parseBackgroundRepeat(repeats[index]), + repeat: parseBackgroundRepeat( + typeof repeats[index] === 'string' ? repeats[index] : repeats[0] + ), size: size.length < 2 ? [size[0], AUTO_SIZE] : [size[0], size[1]], position: position.length < 2 ? [position[0], position[0]] : [position[0], position[1]] };