Skip to content

Commit

Permalink
Fixed definition of server_url to pass its value to run_ajax_request(…
Browse files Browse the repository at this point in the history
…). (#88)
  • Loading branch information
mitkz authored Mar 16, 2020
1 parent ab3a961 commit 568eabf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/graphioGremlin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 568eabf

Please sign in to comment.