diff options
| author | Shulhan <ms@kilabit.info> | 2021-12-25 12:54:55 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2021-12-25 12:54:55 +0700 |
| commit | ac0394cb857e3c70d433b5f42df28f12826e5834 (patch) | |
| tree | 877e30e67ce3e6cd9e6b2ffbec9b30cd142be853 | |
| parent | 28d4055fd24a09808e91ff2c7e0f6fd2d2b9a1c2 (diff) | |
| download | rescached-ac0394cb857e3c70d433b5f42df28f12826e5834.tar.xz | |
www: check for possible null on NameServers environment
| -rw-r--r-- | _www/environment/index.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/_www/environment/index.html b/_www/environment/index.html index bca0535..4e27984 100644 --- a/_www/environment/index.html +++ b/_www/environment/index.html @@ -309,6 +309,11 @@ let listNS = document.getElementById("nameservers") listNS.innerHTML = "" + if (resc.env.NameServers === null) { + resc.env.NameServers = [] + return + } + for (let x = 0; x < resc.env.NameServers.length; x++) { let ns = resc.env.NameServers[x] |
