mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-28 04:50:52 +00:00
Merge pull request #307 from sharelatex/afc-fix-heartbeat-event
Ignore heartbeat event handler params
This commit is contained in:
commit
c1b20a38dd
1 changed files with 3 additions and 4 deletions
|
@ -37,11 +37,10 @@ define [
|
||||||
|
|
||||||
localStorage CACHE_KEY, curCache
|
localStorage CACHE_KEY, curCache
|
||||||
|
|
||||||
_sendEditingSessionHeartbeat = (segmentation) ->
|
_sendEditingSessionHeartbeat = () ->
|
||||||
$http({
|
$http({
|
||||||
url: "/editingSession/#{window.project_id}",
|
url: "/editingSession/#{window.project_id}",
|
||||||
method: "PUT",
|
method: "PUT",
|
||||||
data: segmentation,
|
|
||||||
headers: {
|
headers: {
|
||||||
"X-CSRF-Token": window.csrfToken
|
"X-CSRF-Token": window.csrfToken
|
||||||
}
|
}
|
||||||
|
@ -52,10 +51,10 @@ define [
|
||||||
ga('send', 'event', category, action, label, value)
|
ga('send', 'event', category, action, label, value)
|
||||||
|
|
||||||
|
|
||||||
editingSessionHeartbeat: (segmentation = {}) ->
|
editingSessionHeartbeat: () ->
|
||||||
return unless nextHeartbeat <= new Date()
|
return unless nextHeartbeat <= new Date()
|
||||||
|
|
||||||
_sendEditingSessionHeartbeat(segmentation)
|
_sendEditingSessionHeartbeat()
|
||||||
|
|
||||||
heartbeatsSent++
|
heartbeatsSent++
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue