aboutsummaryrefslogtreecommitdiffhomepage
path: root/livereload
diff options
context:
space:
mode:
authorbep <[email protected]>2015-01-30 16:21:46 +0100
committerbep <[email protected]>2015-01-30 16:21:46 +0100
commitba53799fdb7c59af8733df2027d245584ca6749f (patch)
tree423adf08c4fa6b2196c23e44a37e3248b1527f6b /livereload
parent523f38a9a8f27261d5d95afadfee18489a3b50c1 (diff)
downloadhugo-ba53799fdb7c59af8733df2027d245584ca6749f.tar.gz
hugo-ba53799fdb7c59af8733df2027d245584ca6749f.zip
url_path => urlPath
Diffstat (limited to 'livereload')
-rw-r--r--livereload/livereload.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/livereload/livereload.go b/livereload/livereload.go
index a47a7b687..07e640d05 100644
--- a/livereload/livereload.go
+++ b/livereload/livereload.go
@@ -45,8 +45,8 @@ func ForceRefresh() {
func RefreshPath(s string) {
// Tell livereload a file has changed - will force a hard refresh if not CSS or an image
- url_path := strings.Replace(s, "\\", "/", -1) // If path has backslashes on Windows, make path work for URL
- wsHub.broadcast <- []byte(`{"command":"reload","path":"` + url_path + "\"" + `,"originalPath":"","liveCSS":true,"liveImg":true}`)
+ urlPath := strings.Replace(s, "\\", "/", -1) // If path has backslashes on Windows, make path work for URL
+ wsHub.broadcast <- []byte(`{"command":"reload","path":"` + urlPath + "\"" + `,"originalPath":"","liveCSS":true,"liveImg":true}`)
}
func ServeJS(w http.ResponseWriter, r *http.Request) {