From 5818b90a60d6aee4af21e5b441188c0fce9a2b02 Mon Sep 17 00:00:00 2001 From: Yaman Qalieh Date: Sat, 20 Jan 2018 23:07:54 -0500 Subject: [PATCH] fix serverURL --- SmearcarDB/static/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SmearcarDB/static/index.js b/SmearcarDB/static/index.js index ecbed2b..e74c182 100644 --- a/SmearcarDB/static/index.js +++ b/SmearcarDB/static/index.js @@ -1,5 +1,5 @@ var navSelect = "home"; -var serverURL = "http://localhost:5000"; +var serverURL = window.location.href; var data; var navi = [ // Array containing navigation items in form [Font-Awesome class name, Display Text, Onclick function]. @@ -55,7 +55,7 @@ function updateNav(op) { function getData() { $.ajax({ - url: serverURL + '/server', + url: serverURL + 'server', type: 'GET' }) .then(