summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2021-12-25 12:54:55 +0700
committerShulhan <ms@kilabit.info>2021-12-25 12:54:55 +0700
commitac0394cb857e3c70d433b5f42df28f12826e5834 (patch)
tree877e30e67ce3e6cd9e6b2ffbec9b30cd142be853
parent28d4055fd24a09808e91ff2c7e0f6fd2d2b9a1c2 (diff)
downloadrescached-ac0394cb857e3c70d433b5f42df28f12826e5834.tar.xz
www: check for possible null on NameServers environment
-rw-r--r--_www/environment/index.html5
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]