mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-01 13:14:16 +08:00
fix(spellcheck): Fix dead code, resolve Sentry 3594
This commit is contained in:
parent
c914b2701b
commit
084fcb53e4
1 changed files with 1 additions and 2 deletions
|
@ -15,7 +15,6 @@ class SpellcheckDraftStoreExtension extends DraftStoreExtension
|
|||
|
||||
@onLearnSpelling: (editableNode, word) ->
|
||||
delete SpellcheckCache[word]
|
||||
@ensureSetup()
|
||||
@walkTree(editableNode)
|
||||
|
||||
@walkTree: (editableNode) =>
|
||||
|
@ -55,7 +54,7 @@ class SpellcheckDraftStoreExtension extends DraftStoreExtension
|
|||
# Do not mark it until the user types a space or leaves.
|
||||
if selectionSnapshot.focusNode is node and selectionSnapshot.focusOffset is match.index + match[0].length
|
||||
continue
|
||||
|
||||
|
||||
if spellingSpan
|
||||
spellingSpan.classList.add('misspelled')
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue