Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 10x 18x 18x | export class Poster {
public static site() { return window.location.protocol + "//" + window.location.host; }
public static postMessageToFrame(frame: Window, eventName: string, data?: unknown): void {
if (frame) {
frame.postMessage({ eventName: eventName, data: data }, Poster.site());
}
}
public static postMessageToParent(eventName: string, data?: unknown): void {
window.parent.postMessage({ eventName: eventName, data: data }, Poster.site());
}
}
|