diff options
Diffstat (limited to 'web/gui/index.html')
-rw-r--r-- | web/gui/index.html | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/web/gui/index.html b/web/gui/index.html index d63f0496..2abba2ff 100644 --- a/web/gui/index.html +++ b/web/gui/index.html @@ -24,13 +24,15 @@ apiUrl: "https://app.netdata.cloud", cloudUrl: "https://app.netdata.cloud", demoSlug: "netdata-demo", - demoFavourites: {"postgresql":["postgres"],"redis":["redis"],"dns-query":["dns_query"],"http-endpoints":["httpcheck"],"nginx":["web_log","nginx"],"apache":["apache"],"host-reachability":["ping"],"cassandra":["cassandra"],"coredns":["coredns"],"logind":["logind"],"iis":["iis"],"active-directory":["ad"],"windows":["windows","ad","iis","mssql","exchange","netframework"],"docker":["cgroup","docker"]}, + demoFavourites: {"postgresql":["postgres"],"redis":["redis"],"dns-query":["dns_query"],"http-endpoints":["httpcheck"],"nginx":["web_log","nginx"],"apache":["apache"],"host-reachability":["ping"],"cassandra":["cassandra"],"coredns":["coredns"],"logind":["logind"],"iis":["iis"],"active-directory":["ad"],"windows":["windows","ad","iis","mssql","exchange","netframework"],"docker":["cgroup","docker"],"ups":["upsd"]}, webpackPublicPath: "https://app.netdata.cloud", agentApiUrl: searchParams.get("agent") || getBasename(), - version: "6.29.0", + posthogToken: "phc_hnhlqe6D2Q4IcQNrFItaqdXJAxQ8RcHkPAFAp74pubv", + version: "6.52.2", tracking: false, cookieDomain: ".netdata.cloud", - onprem: false + onprem: false, + nodeEnv: "production" } function loadStyle(url, { media, insertAfter: aref, insertBefore: bref, rel, type } = {}) { @@ -204,5 +206,19 @@ if (event.source !== iframe.contentWindow) return; if (event.data.status === "disabled") console.error("Your netdata registry is disabled! Check your configuration.") + + if (event.data) { + if (!window.localNetdataRegistry) { + window.localNetdataRegistry = {} + } + + window.localNetdataRegistry.pg = event.data.person_guid + + if (!window.envSettings) { + window.envSettings = {} + } + + window.envSettings.visitor = event.data.person_guid + } }); - })</script></body></html>
\ No newline at end of file + }).catch(() => {})</script></body></html>
\ No newline at end of file |