From: bep Date: Fri, 30 Jan 2015 15:21:46 +0000 (+0100) Subject: url_path => urlPath X-Git-Tag: v0.13~83^2~5 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ba53799fdb7c59af8733df2027d245584ca6749f;p=brevno-suite%2Fhugo url_path => urlPath --- diff --git a/livereload/livereload.go b/livereload/livereload.go index a47a7b68..07e640d0 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) {