Skip to content

Commit

Permalink
Add another way to access inky browser
Browse files Browse the repository at this point in the history
  • Loading branch information
kball committed Sep 1, 2016
1 parent 42c1f46 commit f085b50
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions bin/inky-browser.js
Expand Up @@ -3,7 +3,7 @@ var Inky = require('../lib/inky');

var inky;

var setupInky = function(opts, cb) {
window.setupInky = function(opts, cb) {
opts = opts || {};
opts.cheerio = Inky.mergeCheerioOpts(opts.cheerio);
if (typeof inky === 'undefined') {
Expand All @@ -25,7 +25,7 @@ if(typeof(window) !== 'undefined') {
elem = opts;
opts = {};
}
setupInky(opts, function(transform) {
window.setupInky(opts, function(transform) {
transform(elem.outerHTML, function(err, html) {
if(err === null) {
elem.outerHTML = html;
Expand Down

0 comments on commit f085b50

Please sign in to comment.