Merge pull request #1703 from sharelatex/bg-handle-send-before-rejoin

handle error gracefully when client has not yet joined project

GitOrigin-RevId: 21e337f6adbbb23a2126eaf4fa026c78178efef0
This commit is contained in:
Brian Gough 2019-04-16 09:17:57 +01:00 committed by sharelatex
parent 9644ff4f51
commit 0eaf6db2d6

View file

@ -665,6 +665,10 @@ define([
}
meta.doc_id = this.doc_id
sl_console.log('ShareJS error', error, meta)
if (error.message === 'no project_id found on client') {
sl_console.log('ignoring error, will wait to join project')
return
}
if (typeof ga === 'function') {
ga(
'send',