From 568eabf13f57ee4de894d2dabd358d83fdc288b3 Mon Sep 17 00:00:00 2001 From: "M. Itokazu" <42832770+mitkz@users.noreply.github.com> Date: Tue, 17 Mar 2020 00:05:15 +0900 Subject: [PATCH] Fixed definition of server_url to pass its value to run_ajax_request(). (#88) --- scripts/graphioGremlin.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); }