mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
11 lines
282 B
TypeScript
11 lines
282 B
TypeScript
import React from "react";
|
|
|
|
export const IframePageLoadHandler = () => {
|
|
// send message to the parent window to notify that the iframe is loaded
|
|
React.useEffect(() => {
|
|
window.parent.postMessage({ type: "refine-devtools-iframe-loaded" }, "*");
|
|
}, []);
|
|
|
|
return null;
|
|
};
|