Explorar o código

Added js as 'wsrpc.js' too

luis %!s(int64=7) %!d(string=hai) anos
pai
achega
0a0326a695
Modificáronse 1 ficheiros con 1 adicións e 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"])