mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-01-11 01:00:07 +09:00
Update post-message.ts
This commit is contained in:
parent
4ecb3526a2
commit
28fc875054
@ -18,7 +18,7 @@ export type MiPostMessageEvent = {
|
|||||||
* 親フレームにイベントを送信
|
* 親フレームにイベントを送信
|
||||||
*/
|
*/
|
||||||
export function postMessageToParentWindow(type: PostMessageEventType, payload?: any): void {
|
export function postMessageToParentWindow(type: PostMessageEventType, payload?: any): void {
|
||||||
window.postMessage({
|
window.parent.postMessage({
|
||||||
type,
|
type,
|
||||||
payload,
|
payload,
|
||||||
}, '*');
|
}, '*');
|
||||||
|
Loading…
Reference in New Issue
Block a user