This commit is contained in:
kakkokari-gtyih
2024-06-01 21:37:34 +09:00
parent e9b3b5ffcd
commit f80c5d26b5
4 changed files with 55 additions and 14 deletions

View File

@@ -19,6 +19,7 @@ export type MiPostMessageEvent = {
* 親フレームにイベントを送信
*/
export function postMessageToParentWindow(type: PostMessageEventType, payload?: any): void {
if (_DEV_) console.log('postMessageToParentWindow', type, payload);
window.parent.postMessage({
type,
payload,