UNPKG

@spectra/window-day-care

Version:

A library to help you create popup windows and iframes. It makes communication between parent and child window a breeze.

15 lines (11 loc) 413 B
import { Observable } from 'rxjs/Observable'; import { Subject } from 'rxjs/Subject'; import { ChildWindow } from './child-window'; export class Iframe extends ChildWindow { public constructor(private _iframeElement: HTMLIFrameElement) { super(_iframeElement.contentWindow); } protected _cleanUp(): void { this._iframeElement.parentElement.removeChild(this._iframeElement); } }