url_path => urlPath
authorbep <bjorn.erik.pedersen@gmail.com>
Fri, 30 Jan 2015 15:21:46 +0000 (16:21 +0100)
committerbep <bjorn.erik.pedersen@gmail.com>
Fri, 30 Jan 2015 15:21:46 +0000 (16:21 +0100)
livereload/livereload.go

index a47a7b687227fd4500ab439f9c31ee3725715eb5..07e640d054880c1fce97b0d3a1539475e7a0506d 100644 (file)
@@ -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) {