fix iframe bug

This commit is contained in:
Gabe Yuan
2023-09-17 20:45:05 +08:00
parent a865d6d74f
commit 8935ced75a
4 changed files with 95 additions and 21 deletions

View File

@@ -5,3 +5,7 @@ export const sendIframeMsg = (action, args) => {
iframe.contentWindow.postMessage({ action, args }, "*");
});
};
export const sendPrentMsg = (action, args) => {
window.parent.postMessage({ action, args }, "*");
};