diff --git a/api/router_static.go b/api/router_static.go index ee1b6b7..868cb4f 100644 --- a/api/router_static.go +++ b/api/router_static.go @@ -46,7 +46,8 @@ func initStaticRouter(router *mux.Router) error { prefix := "" if dir == "js" { - prefix = "window.origin='" + os.Getenv("ORIGIN") + "';" + prefix = "window.origin='" + os.Getenv("ORIGIN") + "';\n" + prefix += "window.cdn='" + os.Getenv("CDN_PREFIX") + "';\n" } asset[p] = prefix + string(contents);