winlin

support query in index.html

@@ -18,7 +18,9 @@ @@ -18,7 +18,9 @@
18 update_nav(); 18 update_nav();
19 19
20 // direct to the default vhost for players. 20 // direct to the default vhost for players.
21 - window.location.href = "srs_chat.html?" + "&vhost=" + srs_get_player_vhost() + window.location.search ; 21 + var query = "" + window.location.search;
  22 + query = query.substr(1);
  23 + window.location.href = "srs_chat.html?" + "vhost=" + srs_get_player_vhost() + "&" + query;
22 }); 24 });
23 </script> 25 </script>
24 </head> 26 </head>