소스 검색

luci-app-ssr-plus: Fix typo erro.

zxlhhyccc 1 개월 전
부모
커밋
d4dc7e01bb
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      luci-app-ssr-plus/luasrc/view/shadowsocksr/ssrurl.htm

+ 2 - 2
luci-app-ssr-plus/luasrc/view/shadowsocksr/ssrurl.htm

@@ -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") {