summaryrefslogtreecommitdiffstats
path: root/web/gui/v2/registry-hello.html
diff options
context:
space:
mode:
Diffstat (limited to 'web/gui/v2/registry-hello.html')
-rw-r--r--web/gui/v2/registry-hello.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/gui/v2/registry-hello.html b/web/gui/v2/registry-hello.html
index e95f48c47..7fba5662c 100644
--- a/web/gui/v2/registry-hello.html
+++ b/web/gui/v2/registry-hello.html
@@ -14,7 +14,7 @@
var nodes = data.nodes || []
var doAccess = function(mg, nm, token) {
- fetch(data.registry + '/api/v1/registry?action=access&machine=' + (mg || data.machine_guid) + '&name=' + encodeURIComponent(nm || data.hostname) + '&url=' + encodeURIComponent(originUrl) + '&agent=' + (data.agent ? data.agent.machine_guid : ""), { cache: "no-cache", credentials: "include", headers: { Authorization: 'Bearer ' + (token || localStorage.getItem("registry-netdata-token")) } })
+ fetch(data.registry + '/api/v1/registry?action=access&machine=' + (mg || data.machine_guid) + '&name=' + encodeURIComponent(nm || data.hostname) + '&url=' + encodeURIComponent(originUrl) + '&agent=' + (data.agent ? data.agent.machine_guid : ""), { cache: "no-cache", credentials: "include", headers: { ["X-Netdata-Auth"]: 'Bearer ' + (token || localStorage.getItem("registry-netdata-token")) } })
.then(function(response) { return response.json() })
.then(function(data) {
var token = data.person_guid
@@ -39,7 +39,7 @@
})
}
doAccess(data.machine_guid, data.hostname)
- })
+ }).catch(() => {})
}
try {