diff --git a/api/router_static.go b/api/router_static.go index bcc6a99..ac7af10 100644 --- a/api/router_static.go +++ b/api/router_static.go @@ -53,8 +53,8 @@ func staticRouterInit(router *mux.Router) error { prefix := "" if dir == "/js" { - prefix = "window.commentoOrigin='" + os.Getenv("ORIGIN") + "';\n" - prefix += "window.commentoCdn='" + os.Getenv("CDN_PREFIX") + "';\n" + prefix = `window.commento = {origin: "` + os.Getenv("ORIGIN") + `", cdn: "` + os.Getenv("CDN_PREFIX") + `"}; +` } gzip := (os.Getenv("GZIP_STATIC") == "true") diff --git a/frontend/dashboard.html b/frontend/dashboard.html index b402c09..96da26a 100644 --- a/frontend/dashboard.html +++ b/frontend/dashboard.html @@ -21,10 +21,10 @@ @@ -41,7 +41,7 @@
- + Trouble logging in? Reset your password. Don't have an account yet? Sign up. diff --git a/frontend/logout.html b/frontend/logout.html index bb8bea3..b51e306 100644 --- a/frontend/logout.html +++ b/frontend/logout.html @@ -5,6 +5,6 @@