diff --git a/views/views.go b/views/views.go index 93e72ba..7cfcd9c 100644 --- a/views/views.go +++ b/views/views.go @@ -290,7 +290,7 @@ func ServeStaticFunc(w http.ResponseWriter, r *http.Request) { contentType = "text/css" } else if strings.HasSuffix(path, ".png") { contentType = "image/png" - } else if strings.HasSuffix(path, ".png") { + } else if strings.HasSuffix(path, ".js") { contentType = "application/javascript" } else { contentType = "plain/text"