Skip to content

Commit 33ccca3

Browse files
navaruScriptedAlchemy
authored andcommitted
fix: Remove absolute URL condition from HMR request checker. (#173)
1 parent 98b3f2c commit 33ccca3

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/hmr/hotModuleReplacement.js

+2-7
Original file line numberDiff line numberDiff line change
@@ -174,17 +174,12 @@ function reloadAll() {
174174
function isUrlRequest(url) {
175175
// An URL is not an request if
176176

177-
// 1. It's an absolute url
178-
if (/^[a-z][a-z0-9+.-]*:/i.test(url)) {
179-
return false;
180-
}
181-
182-
// 2. It's a protocol-relative
177+
// 1. It's a protocol-relative
183178
if (/^\/\//.test(url)) {
184179
return false;
185180
}
186181

187-
// 3. Its a `#` link
182+
// 2. Its a `#` link
188183
if (/^#/.test(url)) {
189184
return false;
190185
}

0 commit comments

Comments
 (0)