mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-13 04:17:53 +08:00
🎉 Sync 2026-04-20 23:57:06
This commit is contained in:
1 parent
ede68af29e
commit
c8457a2742
27 files changed
+1000
-151
No files matched your search
@@ -52,5 +52,22 @@ local api = self.api
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function fetchCertSha256() {
|
||||
XHR.get('<%=api.url("fetch_certsha256")%>', { id: node_id }, function(x, res) {
|
||||
if (!x || x.status !== 200) {
|
||||
alert("<%:Error%>");
|
||||
return;
|
||||
}
|
||||
if (!res || res.code !== 0 || !res.data) {
|
||||
alert(res && res.msg ? res.msg : "<%:Fetch Failed%> !");
|
||||
return;
|
||||
}
|
||||
const inputs = document.querySelectorAll('input[id$=".xray_tls_CertSha"]');
|
||||
inputs.forEach(function(input) {
|
||||
input.value = res.data;
|
||||
});
|
||||
});
|
||||
}
|
||||
//]]>
|
||||
</script>
|
||||
Reference in new issue
Block a user