Permalink
Browse files

use host setting for websocket

  • Loading branch information...
brentkirby committed Apr 21, 2012
1 parent 14b0928 commit 4d0ec2b041117132d5de3c3eb4f8363f2d3c48fa
Showing with 4 additions and 2 deletions.
  1. +4 −2 frontend/assets/javascripts/application.js.coffee
@@ -11,11 +11,13 @@
#= require ./players/view
(->
+ getHost = ()-> window.location.host.toString().split(":").shift()
+
MP = window.MP =
config:
server:
port: 8888
- host: 'localhost'
+ host: getHost()
path: '/'
poll: 100
)()
@@ -55,5 +57,5 @@ init = ()->
$(()->
-
+ init()
);

0 comments on commit 4d0ec2b

Please sign in to comment.