forked from ilikecats/papercats
Use correct host in game client
This commit is contained in:
parent
c65cfe14b2
commit
57efbb5837
@ -66,7 +66,7 @@ $(function() {
|
|||||||
|
|
||||||
error.text("Loading..."); //TODO: show loading screen.
|
error.text("Loading..."); //TODO: show loading screen.
|
||||||
var success = false;
|
var success = false;
|
||||||
var socket = io('http://paper-io-thekidofarcrania.c9users.io:8081', {
|
var socket = io('http://' + window.location.hostname + ':8081', {
|
||||||
'forceNew': true,
|
'forceNew': true,
|
||||||
upgrade: false,
|
upgrade: false,
|
||||||
transports: ['websocket']
|
transports: ['websocket']
|
||||||
@ -142,7 +142,7 @@ var frameCache = []; //Frames after our request.
|
|||||||
function connectServer() {
|
function connectServer() {
|
||||||
io.j = [];
|
io.j = [];
|
||||||
io.sockets = [];
|
io.sockets = [];
|
||||||
socket = io('http://paper-io-thekidofarcrania.c9users.io:8081', {
|
socket = io('http://' + window.location.hostname + ':8081', {
|
||||||
'forceNew': true,
|
'forceNew': true,
|
||||||
upgrade: false,
|
upgrade: false,
|
||||||
transports: ['websocket']
|
transports: ['websocket']
|
||||||
|
Loading…
Reference in New Issue
Block a user