Fix CYS crash when loads in WordPress Playground (#48129)
* Fix CYS crash when loads in WordPress Plaground * Add changefile(s) from automation for the following project(s): woocommerce --------- Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
parent
924fc1687b
commit
7f1616242c
|
@ -8,7 +8,12 @@ export function sendMessageToParent( message ) {
|
|||
}
|
||||
|
||||
export function isIframe( windowObject ) {
|
||||
return windowObject.document !== windowObject.parent.document;
|
||||
return (
|
||||
windowObject.document !== windowObject.parent.document &&
|
||||
windowObject.parent.document.body.querySelector(
|
||||
'.woocommerce-customize-store__container'
|
||||
) !== null
|
||||
);
|
||||
}
|
||||
|
||||
export function editorIsLoaded() {
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: tweak
|
||||
Comment: Fix CYS crash when loads in WordPress Playground
|
||||
|
Loading…
Reference in New Issue