Skip to content

Commit d9221f6

Browse files
committed
Remove CodeMirror-other-cursors dom creation
Since it’s done via hackmdio/CodeMirror#1
1 parent 88c0c68 commit d9221f6

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

public/js/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2466,9 +2466,6 @@ function buildCursor (user) {
24662466
iconClass = 'fa-desktop'
24672467
break
24682468
}
2469-
if ($('.CodeMirror-other-cursors').length <= 0) {
2470-
$("<div class='CodeMirror-other-cursors'>").insertAfter('.CodeMirror-cursors')
2471-
}
24722469
if ($('div[data-clientid="' + user.id + '"]').length <= 0) {
24732470
let cursor = $('<div data-clientid="' + user.id + '" class="CodeMirror-other-cursor" style="display:none;"></div>')
24742471
cursor.attr('data-line', user.cursor.line)

0 commit comments

Comments
 (0)