Gardr Postscribe Plugin (Ext)
Gardr plugin to enable content rendering with Postscribe from inside of an iframe. It sends message to parent window which sould be caught gardr-plugin-host-postscribe.
Install
npm install gardr-plugin-ext-postscribe --save
Bundle
In your ext bundle file:
var gardrExt = ; var postscribe = ; gardrExt; moduleexports = gardrExt;
Usage
Set global variable _gardrPostscribe
to true
anywhere in script pointed by options.url or declare a custom function:
{ _gardrRunPostscribegetHTML = getHTML}``` In host window:```javascriptvar gardr = ;gardr;
In my-adserver.com/ad.js:
window_gardrPostscribe = true;
or
window;