mirror of https://github.com/perkeep/perkeep.git
root discovery: drop var, so things are on window.
Change-Id: Ib84203a1135d3254d1596d7d82ec1389f0a94475
This commit is contained in:
parent
8931c24e4c
commit
0cbf38b29a
|
@ -139,7 +139,7 @@ func discoveryHelper(rw http.ResponseWriter, req *http.Request, m map[string]int
|
|||
fmt.Fprintf(rw, "%s(", cb)
|
||||
defer rw.Write([]byte(");\n"))
|
||||
} else if v := req.FormValue("var"); identOrDotPattern.MatchString(v) {
|
||||
fmt.Fprintf(rw, "var %s = ", v)
|
||||
fmt.Fprintf(rw, "%s = ", v)
|
||||
defer rw.Write([]byte(";\n"))
|
||||
}
|
||||
bytes, _ := json.MarshalIndent(m, "", " ")
|
||||
|
|
Loading…
Reference in New Issue