mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-20 22:23:53 +08:00
fix(spellcheck): Fix dead code, resolve Sentry 3594
This commit is contained in:
parent
397d2bf694
commit
4a37766a17
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