Skip to content

Commit

Permalink
Use right event name
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Tilley committed May 30, 2012
1 parent a99476f commit 7b47730
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion assets/javascripts/entry.coffee
Expand Up @@ -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
1 change: 1 addition & 0 deletions server.coffee
Expand Up @@ -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)
Expand Down

0 comments on commit 7b47730

Please sign in to comment.