Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

gardr-plugin-host-options

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gardr-plugin-host-options

Gardr plugin for passing initialization options into iframe

latest
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

Gardr Options Plugin (Host)

Gardr plugin to pass options object from host into ext.

Install

npm install gardr-plugin-host-options --save

Bundle

In your host bundle file:

    var gardrHost = require('gardr-host');
    var options = require('gardr-plugin-host-options');

    gardrHost.plugin(options);

    module.exports = gardrHost;

Options

sendOptions - boolean, enables/disables passing options into ext iframe.

Example

var gardr = gardrHost(...);
gardr.queue('ad', {
    url: 'my-adserver.com/ad.js',
    container: 'ad',
    sendOptions: true,
    ...
});

Usage

Options (except for circular referencing objects, such as DOM elements) will be available in ext iframe under gardr.params.options

Keywords

gardr

FAQs

Package last updated on 14 Oct 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts