examples/_server: Don't return map files to make it easier to debug JS

This commit is contained in:
Hajime Hoshi 2016-11-02 00:14:54 +09:00
parent 5afe3225f3
commit 34e85b0041

View File

@ -122,21 +122,7 @@ window.onload = function() {
}
func serveMainJSMap(w http.ResponseWriter, r *http.Request) {
name, err := appName(r)
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
out, err := createJSIfNeeded(name)
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
out += ".map"
if err := serveFile(w, out, "application/octet-stream"); err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
http.NotFound(w, r)
}
func main() {