Skip to content

Commit

Permalink
fix: Remove absolute URL condition from HMR request checker. (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
navaru authored and ScriptedAlchemy committed May 19, 2019
1 parent 98b3f2c commit 33ccca3
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/hmr/hotModuleReplacement.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,17 +174,12 @@ function reloadAll() {
function isUrlRequest(url) {
// An URL is not an request if

// 1. It's an absolute url
if (/^[a-z][a-z0-9+.-]*:/i.test(url)) {
return false;
}

// 2. It's a protocol-relative
// 1. It's a protocol-relative
if (/^\/\//.test(url)) {
return false;
}

// 3. Its a `#` link
// 2. Its a `#` link
if (/^#/.test(url)) {
return false;
}
Expand Down

0 comments on commit 33ccca3

Please sign in to comment.