Skip to content

Commit

Permalink
Make the 'absolute URL detection' code correctly recognize 'blob:' UR…
Browse files Browse the repository at this point in the history
…Ls as absolute
  • Loading branch information
zlamma committed Jun 19, 2016
1 parent 063ced9 commit ca81aea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resolve.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export default function resolvePath ( relativePath, base ) {
// If we've got an absolute path, or base is '', return
// relativePath
if ( !base || relativePath.charAt( 0 ) === '/' ) {
if ( !base || relativePath.charAt( 0 ) === '/' || (relativePath.indexOf('blob:') === 0) ) {
return relativePath;
}

Expand Down

0 comments on commit ca81aea

Please sign in to comment.