1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-12-05 10:18:42 +09:00

iframeIdを一度設定したら変更できないように

This commit is contained in:
kakkokari-gtyih 2024-06-02 19:43:01 +09:00
parent 774b46be94
commit 200dc28b7f

View File

@ -28,6 +28,8 @@ export type MiPostMessageEvent<T extends PostMessageEventType = PostMessageEvent
let defaultIframeId: string | null = null; let defaultIframeId: string | null = null;
export function setIframeId(id: string): void { export function setIframeId(id: string): void {
if (defaultIframeId != null) return;
if (_DEV_) console.log('setIframeId', id); if (_DEV_) console.log('setIframeId', id);
defaultIframeId = id; defaultIframeId = id;
} }