reddit/iframes

Name: iframes

Owner: Reddit

Description: null

Created: 2015-12-22 00:32:33.0

Updated: 2018-04-02 23:09:11.0

Pushed: 2018-03-26 22:12:50.0

Homepage: null

Size: 30

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

r/iframes

A library for interacting with <iframes />.

Change Log
v0.0.0

Initial release

v0.1.1

Transform modules to commonjs

Installation

yarn add @r/frames -s

Usage example
rt * as frames from '@r/frames';

arent window
es.listen('dfp');
es.receiveMessageOnce('init.dfp', () => {
 do stuff.


frame
es.postMessage(window.parent, 'init.dfp', data);
TODO
  1. Add tests
  2. Convert to typescript

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.