Skip to content

Commit

Permalink
The base URL was ignored for images
Browse files Browse the repository at this point in the history
  • Loading branch information
thorn0 committed Sep 26, 2015
1 parent 5ea7be3 commit 6f426a7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,11 @@ util.getTextReplacement = function( src, relativeTo, callback )

util.getFileReplacement = function( src, relativeTo, callback )
{
if( util.isRemotePath( src ) )
if( util.isRemotePath( relativeTo ) )
{
util.getRemote( url.resolve( relativeTo, src ), callback, true );
}
else if( util.isRemotePath( src ) )
{
util.getRemote( src, callback, true );
}
Expand Down

0 comments on commit 6f426a7

Please sign in to comment.