mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +01:00
examples/_server: Don't return map files to make it easier to debug JS
This commit is contained in:
parent
5afe3225f3
commit
34e85b0041
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user