We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0417d8 commit 8b6838fCopy full SHA for 8b6838f
1 file changed
src/ServiceStack/js/hot-loader.js
@@ -13,8 +13,8 @@ var __lastEtag = "";
13
function _replace(uri, key, value, strip) {
14
var re = new RegExp("([?&])" + key + "=.*?(&|$)", "i")
15
return uri.match(re) ?
16
- uri.replace(re, strip ? '' : ('$1' + key + "=" + value + '$2')) :
17
- strip ? url : uri + (uri.indexOf('?') !== -1 ? "&" : "?") + key + "=" + value
+ uri.replace(re, strip ? '' : '$1' + key + "=" + value + '$2') :
+ strip ? uri : uri + (uri.indexOf('?') !== -1 ? "&" : "?") + key + "=" + value
18
}
19
fetch("/templates/hotreload/page.json?path=" + encodeURIComponent(location.pathname) + "&eTag=" + __lastEtag)
20
.then(function(res){
@@ -37,4 +37,4 @@ var __lastEtag = "";
37
38
})
39
.catch(function(err){ console.log('hotreload error: ', err) })
40
-})();
+})();
0 commit comments