From bdfd99de7bedae3a71caa4f09fde4b0ea6dede99 Mon Sep 17 00:00:00 2001 From: Geert Gerritsen Date: Wed, 13 Jun 2018 15:57:08 +0200 Subject: [PATCH] Add (default) port when connecting to localhost --- static/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/main.js b/static/js/main.js index a6efb1e..98fcb14 100755 --- a/static/js/main.js +++ b/static/js/main.js @@ -2,7 +2,7 @@ if (document.location.host === "twitterwall.creal.de") var socket = io.connect('http://twitterwall.creal.de'); else - var socket = io.connect('http://localhost'); + var socket = io.connect('http://localhost:3000'); var whereToLoadPriorities = [1,1,1, 1,1,1]; whereToLoadPriorities[parseInt(Math.random() * 6)] = 0; /* randomize initial position */