mirror of
https://gitlab.com/commento/commento.git
synced 2025-06-30 11:06:37 -04:00
router_static.go: inject origin instead of api
This commit is contained in:
@ -43,7 +43,7 @@ func initStaticRouter(router *mux.Router) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if dir == "js" {
|
if dir == "js" {
|
||||||
asset[path] = "window.API='" + os.Getenv("ORIGIN") + "/api';" + string(contents)
|
asset[path] = "window.origin='" + os.Getenv("ORIGIN") + "';" + string(contents)
|
||||||
} else {
|
} else {
|
||||||
asset[path] = string(contents)
|
asset[path] = string(contents)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user