diff --git a/views/views.go b/views/views.go index a0a0802..1cca6d7 100644 --- a/views/views.go +++ b/views/views.go @@ -269,7 +269,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"