Skip to content

Commit 4d8b07e

Browse files
committed
don't force http
1 parent ca805ad commit 4d8b07e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_site/js/app.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ $(document).ready(function () {
8383

8484
var loadOptions = {type: 'get', dataType: 'json'};
8585
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)
8787
.then(function(state) {
8888
context.cluster_name = state.cluster_name;
8989
context.master_node = state.master_node;
@@ -124,7 +124,7 @@ $(document).ready(function () {
124124
}
125125

126126
//console.log("Poll: " + index);
127-
$.getJSON("http://" + global.host + "/" + formattedIndex + "_segments/", function(data) {
127+
$.getJSON("//" + global.host + "/" + formattedIndex + "_segments/", function(data) {
128128
var segments = {};
129129

130130
$.each(data.indices[index].shards, function (shardKey, shardValue) {
@@ -218,7 +218,7 @@ $(document).ready(function () {
218218

219219
var loadOptions = {type: 'get', dataType: 'json'};
220220
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)
222222
.then(function(state) {
223223

224224
context.cluster_name = state.cluster_name;

0 commit comments

Comments
 (0)