@@ -83,7 +83,7 @@ $(document).ready(function () {
83
83
84
84
var loadOptions = { type : 'get' , dataType : 'json' } ;
85
85
var stateOptions = "?filter_metadata=true&filter_blocks=true" ;
86
- context . load ( "http: //" + global . host + "/_cluster/state" + stateOptions , loadOptions )
86
+ context . load ( "//" + global . host + "/_cluster/state" + stateOptions , loadOptions )
87
87
. then ( function ( state ) {
88
88
context . cluster_name = state . cluster_name ;
89
89
context . master_node = state . master_node ;
@@ -124,7 +124,7 @@ $(document).ready(function () {
124
124
}
125
125
126
126
//console.log("Poll: " + index);
127
- $ . getJSON ( "http: //" + global . host + "/" + formattedIndex + "_segments/" , function ( data ) {
127
+ $ . getJSON ( "//" + global . host + "/" + formattedIndex + "_segments/" , function ( data ) {
128
128
var segments = { } ;
129
129
130
130
$ . each ( data . indices [ index ] . shards , function ( shardKey , shardValue ) {
@@ -218,7 +218,7 @@ $(document).ready(function () {
218
218
219
219
var loadOptions = { type : 'get' , dataType : 'json' } ;
220
220
var stateOptions = "?filter_metadata=true&filter_blocks=true" ;
221
- context . load ( "http: //" + global . host + "/_cluster/state" + stateOptions , loadOptions )
221
+ context . load ( "//" + global . host + "/_cluster/state" + stateOptions , loadOptions )
222
222
. then ( function ( state ) {
223
223
224
224
context . cluster_name = state . cluster_name ;
0 commit comments