Permalink
Browse files

Use right event name

  • Loading branch information...
1 parent a99476f commit 7b477303293c346a0befa314e26dab0a097b7cfa Brandon Tilley committed May 30, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −1 assets/javascripts/entry.coffee
  2. +1 −0 server.coffee
@@ -6,4 +6,4 @@ $ ->
socket.on 'message', (json) ->
lat = json.geo.ll[0]
long = json.geo.ll[1]
- window.blip.bloop lat, long, 'firstRequest'
+ window.blip.bloop lat, long, json.eventName
View
@@ -30,6 +30,7 @@ app.listen 3000
socket = io.listen app
handleMessage = (channel, json) ->
+ return unless json.ip
json = JSON.parse json
json.ip = '66.249.66.162' if json.ip == '127.0.0.1'
geo = geoip.lookup(json.ip)

0 comments on commit 7b47730

Please sign in to comment.