From b5a9ac32121928d31ec912820f8add70db3fbc7c Mon Sep 17 00:00:00 2001 From: Danielv123 Date: Mon, 8 Jan 2018 15:36:50 +0100 Subject: [PATCH] Fixed remoteMap trying to connect to localhost --- static/remoteMap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/remoteMap.js b/static/remoteMap.js index b0a488fa..bb1a2b1e 100644 --- a/static/remoteMap.js +++ b/static/remoteMap.js @@ -8,7 +8,7 @@ function getParameterByName(name, url) { return decodeURIComponent(results[2].replace(/\+/g, " ")); } -var socket = io.connect('http://localhost:8080'); +var socket = io.connect(document.location.origin); socket.on('hello', function (data) { console.log(data); socket.emit("registerMapRequester", {instanceID: getParameterByName("instanceID")});