diff --git a/src/parent/parent.js b/src/parent/parent.js index 8842b5ac..d3798d53 100644 --- a/src/parent/parent.js +++ b/src/parent/parent.js @@ -713,9 +713,18 @@ export function parentComponent({ return ZalgoPromise.try(() => { currentChildDomain = childDomain; childComponent = childExports; - currentProxyWin?.setName(childExports?.name); - resolveInitPromise(); - clean.register(() => childExports.close.fireAndForget().catch(noop)); + + currentProxyWin + ?.isPopup() + .then((isPopup) => { + if (childExports?.name !== "" && isPopup) { + currentProxyWin?.setName(childExports?.name); + } + }) + .finally(() => { + resolveInitPromise(); + clean.register(() => childExports.close.fireAndForget().catch(noop)); + }); }); };