add interval refresh

This commit is contained in:
Paul 2024-06-10 01:14:01 +02:00
parent 32ddcdc269
commit eb5d136207

View File

@ -14,7 +14,7 @@ function setData(res) {
dip_as_org.innerHTML = res["as"]["org"]; dip_as_org.innerHTML = res["as"]["org"];
} }
function main() { function updateIP() {
let ip = ""; let ip = "";
if (window.location.pathname.length > 4) { if (window.location.pathname.length > 4) {
@ -35,4 +35,4 @@ function main() {
}); });
} }
main(); setInterval(updateIP,1000);