Fixed typo in last commit.

This commit is contained in:
Nick Winter 2015-04-18 16:08:31 -07:00
parent 86ae0979c5
commit 114b0f4937

View file

@ -100,7 +100,7 @@ module.exports = class Tracker
eventObject["user"] = me.id
dataToSend = JSON.stringify eventObject
# console.log dataToSend if debugAnalytics
$.post("http://analytics.codecombat.com/analytics", dataToSend).fail ->
$.post("#{window.location.protocol or 'http:'}//analytics.codecombat.com/analytics", dataToSend).fail ->
console.error "Analytics post failed!"
else
request = @supermodel.addRequestResource 'log_event', {