14 lines
312 B
TypeScript
14 lines
312 B
TypeScript
export default class IframeReference {
|
|
private static iframe: HTMLIFrameElement | null = null;
|
|
|
|
private constructor() { }
|
|
|
|
public static setIframe(iframe: HTMLIFrameElement | null): void {
|
|
this.iframe = iframe;
|
|
}
|
|
|
|
public static getIframe(): HTMLIFrameElement | null {
|
|
return this.iframe;
|
|
}
|
|
}
|