Update post-message.ts

This commit is contained in:
syuilo 2024-08-26 11:34:42 +09:00
parent 4ecb3526a2
commit 28fc875054
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ export type MiPostMessageEvent = {
*
*/
export function postMessageToParentWindow(type: PostMessageEventType, payload?: any): void {
window.postMessage({
window.parent.postMessage({
type,
payload,
}, '*');