Don't count on Olark being there.

This commit is contained in:
Nick Winter 2014-02-06 11:16:57 -08:00
parent 958ce4dfcf
commit b696a3f188

View file

@ -26,6 +26,7 @@ module.exports = class Tracker
olark 'api.chat.updateVisitorNickname', snippet: me.displayName()
updatePlayState: (level, session) ->
return unless olark?
link = "codecombat.com/play/level/#{level.get('slug') or level.id}?session=#{session.id}"
snippet = [
"#{link}"