Skip to content

Commit e2b5028

Browse files
committed
Make the 'absolute URL detection' code correctly recognize 'blob:' URLs as absolute
1 parent 78457ce commit e2b5028

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resolve.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export default function resolvePath ( relativePath, base ) {
22
// If we've got an absolute path, or base is '', return
33
// relativePath
4-
if ( !base || relativePath.charAt( 0 ) === '/' ) {
4+
if ( !base || relativePath.charAt( 0 ) === '/' || (relativePath.indexOf('blob:') === 0) ) {
55
return relativePath;
66
}
77

0 commit comments

Comments
 (0)