]> arthur.barton.de Git - netdata.git/commitdiff
use as url the netdata server API url, not the visible document location
authorCosta Tsaousis <costa@tsaousis.gr>
Wed, 11 May 2016 15:39:35 +0000 (18:39 +0300)
committerCosta Tsaousis <costa@tsaousis.gr>
Wed, 11 May 2016 15:39:35 +0000 (18:39 +0300)
web/dashboard.js

index 8dd572029cf6a23a7fae18625fd8ff1f38245bea..f0f85bd738cf28c01b371d485748ea43f048988e 100644 (file)
 
                access: function(callback) {
                        $.ajax({
-                                       url: NETDATA.registry.server + '/api/v1/registry?action=access&machine=' + NETDATA.registry.machine_guid + '&name=' + encodeURIComponent(NETDATA.registry.hostname) + '&url=' + encodeURIComponent(document.location),
+                                       url: NETDATA.registry.server + '/api/v1/registry?action=access&machine=' + NETDATA.registry.machine_guid + '&name=' + encodeURIComponent(NETDATA.registry.hostname) + '&url=' + encodeURIComponent(NETDATA.serverDefault),
                                        async: true,
                                        cache: false,
                                        xhrFields: { withCredentials: true }