Trying new way of connecting to socketio

This commit is contained in:
Kasper Rynning-Tønnesen
2017-03-02 21:36:39 +01:00
parent c8901a7c1b
commit 835ffb7f39
7 changed files with 12 additions and 12 deletions

View File

@@ -17,7 +17,7 @@ $(document).ready(function (){
$("#about").modal();
$("#contact").modal();
if(window.location.hostname == "remote.zoff.me") add = "https://zoff.me";
if(window.location.hostname == "remote.zoff.me") add = "https://socket.zoff.me";
else add = "localhost";
socket = io.connect(add + ':8080', connection_options);
id = window.location.pathname.split("/")[1];