Merge pull request #36 from jorendorff/master

Support relative <img src=> URLs.
This commit is contained in:
Remy Sharp 2014-01-03 01:47:24 -08:00
commit 574f2c3ed0

View File

@ -84,7 +84,9 @@ function Inliner(url, options, callback) {
jsdom.env(html, [
'http://code.jquery.com/jquery.min.js'
], function(errors, window) {
], {
url: url
}, function(errors, window) {
// remove jQuery that was included with jsdom
window.$('script:last').remove();