fix: new window close fallback fixed
This commit is contained in:
@@ -84,6 +84,7 @@ export const RenderInNewWindow: React.FC<NewWindowProps> = ({
|
||||
const newWin = window.open("", "_blank", baseFeatures.join(","));
|
||||
if (!newWin) {
|
||||
console.warn("Popup blocked or failed to open window.");
|
||||
onClose?.();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user