Skip to content

Commit

Permalink
use host setting for websocket
Browse files Browse the repository at this point in the history
  • Loading branch information
brentkirby committed Apr 21, 2012
1 parent 14b0928 commit 4d0ec2b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frontend/assets/javascripts/application.js.coffee
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@
#= require ./players/view #= require ./players/view


(-> (->
getHost = ()-> window.location.host.toString().split(":").shift()

MP = window.MP = MP = window.MP =
config: config:
server: server:
port: 8888 port: 8888
host: 'localhost' host: getHost()
path: '/' path: '/'
poll: 100 poll: 100
)() )()
Expand Down Expand Up @@ -55,5 +57,5 @@ init = ()->




$(()-> $(()->

init()
); );

0 comments on commit 4d0ec2b

Please sign in to comment.