mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48: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) {
|
func serveMainJSMap(w http.ResponseWriter, r *http.Request) {
|
||||||
name, err := appName(r)
|
http.NotFound(w, 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
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
Loading…
Reference in New Issue
Block a user