Skip to content

Commit

Permalink
Check directly for // in resolveUrl because it isn't a valid URL
Browse files Browse the repository at this point in the history
  • Loading branch information
aomarks committed May 1, 2019
1 parent 733cf68 commit d0ea20a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/utils/resolve-url.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ export function resolveUrl(url, baseURI) {
if (url && ABS_URL.test(url)) {
return url;
}
if (url === '//') {
return url;
}
// Lazy feature detection.
if (workingURL === undefined) {
workingURL = false;
Expand Down

0 comments on commit d0ea20a

Please sign in to comment.