mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Remove trailing whitespace
This commit is contained in:
parent
3ac4e4c457
commit
1a1ccc9f46
2 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue