Add cm instance to cursorActivity argument
This commit is contained in:
parent
579dda9515
commit
af5ef52f4b
1 changed files with 2 additions and 2 deletions
|
@ -1845,7 +1845,7 @@ socket.on('disconnect', function (data) {
|
|||
socket.on('reconnect', function (data) {
|
||||
// sync back any change in offline
|
||||
emitUserStatus(true)
|
||||
cursorActivity()
|
||||
cursorActivity(editor)
|
||||
socket.emit('online users')
|
||||
})
|
||||
socket.on('connect', function (data) {
|
||||
|
@ -2702,7 +2702,7 @@ editorInstance.on('focus', function (editor) {
|
|||
|
||||
const cursorActivity = _.debounce(cursorActivityInner, cursorActivityDebounce)
|
||||
|
||||
function cursorActivityInner () {
|
||||
function cursorActivityInner (editor) {
|
||||
if (editorHasFocus() && !Visibility.hidden()) {
|
||||
for (var i = 0; i < window.onlineUsers.length; i++) {
|
||||
if (window.onlineUsers[i].id === window.personalInfo.id) {
|
||||
|
|
Loading…
Reference in a new issue