Pārlūkot izejas kodu

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

zxlhhyccc 1 mēnesi atpakaļ
vecāks
revīzija
d4dc7e01bb

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