diff --git a/scripts/graphioGremlin.js b/scripts/graphioGremlin.js index 2184ffa..cbcb803 100644 --- a/scripts/graphioGremlin.js +++ b/scripts/graphioGremlin.js @@ -216,10 +216,11 @@ var graphioGremlin = (function(){ let server_port = $('#server_port').val(); let COMMUNICATION_PROTOCOL = $('#server_protocol').val(); if (COMMUNICATION_PROTOCOL == 'REST'){ + let server_url = "" if(REST_USE_HTTPS){ - let server_url = "https://"+server_address+":"+server_port; + server_url = "https://"+server_address+":"+server_port; } else{ - let server_url = "http://"+server_address+":"+server_port; + server_url = "http://"+server_address+":"+server_port; } run_ajax_request(gremlin_query,server_url,query_type,active_node,message,callback); }