mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Merge pull request #307 from sharelatex/afc-fix-heartbeat-event
Ignore heartbeat event handler params
This commit is contained in:
@@ -37,11 +37,10 @@ define [
|
||||
|
||||
localStorage CACHE_KEY, curCache
|
||||
|
||||
_sendEditingSessionHeartbeat = (segmentation) ->
|
||||
_sendEditingSessionHeartbeat = () ->
|
||||
$http({
|
||||
url: "/editingSession/#{window.project_id}",
|
||||
method: "PUT",
|
||||
data: segmentation,
|
||||
headers: {
|
||||
"X-CSRF-Token": window.csrfToken
|
||||
}
|
||||
@@ -52,10 +51,10 @@ define [
|
||||
ga('send', 'event', category, action, label, value)
|
||||
|
||||
|
||||
editingSessionHeartbeat: (segmentation = {}) ->
|
||||
editingSessionHeartbeat: () ->
|
||||
return unless nextHeartbeat <= new Date()
|
||||
|
||||
_sendEditingSessionHeartbeat(segmentation)
|
||||
_sendEditingSessionHeartbeat()
|
||||
|
||||
heartbeatsSent++
|
||||
|
||||
|
||||
Reference in New Issue
Block a user