@percy/dom
Advanced tools
Comparing version 1.0.0-beta.49 to 1.0.0-beta.50
@@ -72,15 +72,9 @@ (function() { | ||
if (clone.head.contains(cloneEl)) { | ||
cloneEl.remove(); // if the frame document is accessible, we can serialize it | ||
} else if (frame.contentDocument) { | ||
cloneEl.remove(); // if the frame document is accessible and not empty, we can serialize it | ||
} else if (frame.contentDocument && frame.contentDocument.documentElement) { | ||
// js is enabled and this frame was built with js, don't serialize it | ||
if (enableJavaScript && builtWithJs) { | ||
continue; | ||
} // the frame has yet to load and wasn't built with js, it is unsafe to serialize | ||
if (enableJavaScript && builtWithJs) continue; // the frame has yet to load and wasn't built with js, it is unsafe to serialize | ||
if (!builtWithJs && !frame.contentWindow.performance.timing.loadEventEnd) continue; // recersively serialize contents | ||
if (!builtWithJs && !frame.contentWindow.performance.timing.loadEventEnd) { | ||
continue; | ||
} // recersively serialize contents | ||
let serialized = serializeDOM({ | ||
@@ -87,0 +81,0 @@ dom: frame.contentDocument, |
{ | ||
"name": "@percy/dom", | ||
"version": "1.0.0-beta.49", | ||
"version": "1.0.0-beta.50", | ||
"license": "MIT", | ||
@@ -32,3 +32,3 @@ "main": "dist/bundle.js", | ||
}, | ||
"gitHead": "7fec5dc3d381622dc47c236ec7e81aeb6ec1c035" | ||
"gitHead": "06f92d0d9226ddae14f7af276abbfe0c77083603" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12036
170