Browse Source

Added js as 'wsrpc.js' too

luis 7 years ago
parent
commit
0a0326a695
1 changed files with 1 additions and 1 deletions
  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"])