iframe-console
Gather iframe errors and console messages
Installation
npm install iframe-console
Usage
In iframe:
In parent:
window
API
iframeConsole(source, target)
source
- type: string
- url source of message [defaults to window.parent.document.URL]
target
- type: window
- the window to direct console messages to