|
@@ -381,9 +381,9 @@ function import_ssr_url(btn, urlname, sid) {
|
|
|
switch (params.get("type")) {
|
|
|
case "ws":
|
|
|
if (params.get("security") !== "tls") {
|
|
|
- setElementValue('cbid.shadowsocksr.' + sid + '.ws_host', params.get("host") ? decodeURIComponent(params.get("host")) : "");
|
|
|
+ document.getElementsByName('cbid.shadowsocksr.' + sid + '.ws_host')[0].value = params.get("host") ? decodeURIComponent(params.get("host")) : "";
|
|
|
}
|
|
|
- setElementValue('cbid.shadowsocksr.' + sid + '.ws_path', params.get("path") ? decodeURIComponent(params.get("path")) : "/");
|
|
|
+ document.getElementsByName('cbid.shadowsocksr.' + sid + '.ws_path')[0].value = params.get("path") ? decodeURIComponent(params.get("path")) : "/";
|
|
|
break;
|
|
|
case "httpupgrade":
|
|
|
if (params.get("security") !== "tls") {
|