|
|
@@ -701,22 +701,6 @@ export default Document = (function () {
|
|
|
sl_console.log('ignoring error, will wait to join project')
|
|
|
return
|
|
|
}
|
|
|
- if (typeof ga === 'function') {
|
|
|
- // sanitise the error message before sending (the "delete component"
|
|
|
- // error in public/js/libs/sharejs.js includes the some document
|
|
|
- // content).
|
|
|
- let message = error.message
|
|
|
- if (/^Delete component/.test(message)) {
|
|
|
- message = 'Delete component does not match deleted text'
|
|
|
- }
|
|
|
- ga(
|
|
|
- 'send',
|
|
|
- 'event',
|
|
|
- 'error',
|
|
|
- 'shareJsError',
|
|
|
- `${message} - ${this.ide.socket.socket.transport.name}`
|
|
|
- )
|
|
|
- }
|
|
|
if (this.doc != null) {
|
|
|
this.doc.clearInflightAndPendingOps()
|
|
|
}
|