Explorar el Código

Added js as 'wsrpc.js' too

luis hace 7 años
padre
commit
0a0326a695
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      wsrpc.go

+ 1 - 1
wsrpc.go

@@ -32,7 +32,7 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
 	switch urlPath {
 	case "ws", "wsrpc":
 		h.wsHandler.ServeHTTP(w, r)
-	case "cli.js": // Serve client JS file
+	case "cli.js", "wsrpc.js": // Serve client JS file
 		w.Header().Set("Content-type", "application/javascript")
 		w.WriteHeader(200)
 		w.Write(wsrpcAssets.Data["wsrpc.js"])