1
mirror of https://gitlab.com/commento/commento.git synced 2025-06-29 22:56:37 -04:00

frontend: prefix cdn and origin with commento

This commit is contained in:
Adhityaa
2018-06-05 15:31:14 +05:30
parent ee65be7bac
commit d4f617a703
9 changed files with 14 additions and 14 deletions

View File

@ -46,8 +46,8 @@ func initStaticRouter(router *mux.Router) error {
prefix := ""
if dir == "js" {
prefix = "window.origin='" + os.Getenv("ORIGIN") + "';\n"
prefix += "window.cdn='" + os.Getenv("CDN_PREFIX") + "';\n"
prefix = "window.commento_origin='" + os.Getenv("ORIGIN") + "';\n"
prefix += "window.commento_cdn='" + os.Getenv("CDN_PREFIX") + "';\n"
}
asset[p] = prefix + string(contents);