iframeIdを一度設定したら変更できないように
This commit is contained in:
parent
774b46be94
commit
200dc28b7f
|
@ -28,6 +28,8 @@ export type MiPostMessageEvent<T extends PostMessageEventType = PostMessageEvent
|
|||
let defaultIframeId: string | null = null;
|
||||
|
||||
export function setIframeId(id: string): void {
|
||||
if (defaultIframeId != null) return;
|
||||
|
||||
if (_DEV_) console.log('setIframeId', id);
|
||||
defaultIframeId = id;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue