Skip to content

Commit 8b6838f

Browse files
committed
fix js error
1 parent f0417d8 commit 8b6838f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/ServiceStack/js/hot-loader.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ var __lastEtag = "";
1313
function _replace(uri, key, value, strip) {
1414
var re = new RegExp("([?&])" + key + "=.*?(&|$)", "i")
1515
return uri.match(re) ?
16-
uri.replace(re, strip ? '' : ('$1' + key + "=" + value + '$2')) :
17-
strip ? url : uri + (uri.indexOf('?') !== -1 ? "&" : "?") + key + "=" + value
16+
uri.replace(re, strip ? '' : '$1' + key + "=" + value + '$2') :
17+
strip ? uri : uri + (uri.indexOf('?') !== -1 ? "&" : "?") + key + "=" + value
1818
}
1919
fetch("/templates/hotreload/page.json?path=" + encodeURIComponent(location.pathname) + "&eTag=" + __lastEtag)
2020
.then(function(res){
@@ -37,4 +37,4 @@ var __lastEtag = "";
3737
}
3838
})
3939
.catch(function(err){ console.log('hotreload error: ', err) })
40-
})();
40+
})();

0 commit comments

Comments
 (0)