Alberto Fernández Capel 8 лет назад
Родитель
Сommit
1a1ccc9f46

+ 1 - 1
services/web/app/coffee/Features/Analytics/AnalyticsManager.coffee

@@ -49,7 +49,7 @@ module.exports =
 			timeout:1000
 			url: "/user/#{user_id}/event/last_occurnace"
 		makeRequest opts, (err, response, body)->
-			if err? 
+			if err?
 				console.log response, opts
 				logger.err {user_id, err}, "error getting last occurance of event"
 				return callback err

+ 4 - 4
services/web/public/coffee/main/event.coffee

@@ -8,15 +8,15 @@ define [
 		ga('send', 'event', category, action)
 		event_name = "#{action}-#{category}"
 		Intercom?("trackEvent", event_name, attributes)
-		
+
 	App.factory "event_tracking", ($http, localStorage) ->
-		_getEventCache = () -> 
+		_getEventCache = () ->
 			eventCache = localStorage CACHE_KEY
 
 			# Initialize as an empy object if the event cache is still empty.
 			if !eventCache?
 				eventCache = {}
-				localStorage CACHE_KEY, eventCache 
+				localStorage CACHE_KEY, eventCache
 
 			return eventCache
 
@@ -45,7 +45,7 @@ define [
 				}
 
 			sendMBSampled: (key, segmentation) ->
-				@sendMB key, segmentation if Math.random() < .01 
+				@sendMB key, segmentation if Math.random() < .01
 
 			sendMBOnce: (key, segmentation) ->
 				if ! _eventInCache(key)