solved maximum exeed bug in create new window
This commit is contained in:
@@ -217,16 +217,6 @@ export const RenderInNewWindow: React.FC<NewWindowProps> = ({
|
||||
};
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
const handleResize = () => {
|
||||
childWindowRef.current?.dispatchEvent(new Event("resize"));
|
||||
};
|
||||
childWindowRef.current?.addEventListener("resize", handleResize);
|
||||
return () => {
|
||||
childWindowRef.current?.removeEventListener("resize", handleResize);
|
||||
};
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
const w = childWindowRef.current;
|
||||
if (w && !w.closed) {
|
||||
|
||||
Reference in New Issue
Block a user