1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

don't do spellcheck if disabled...

This commit is contained in:
ehhc
2018-11-12 17:47:45 +01:00
parent aa26e5ac2a
commit 49abfac98e

View File

@@ -188,6 +188,9 @@ const debouncedSpellCheck = _.debounce(checkChangeRange, MILLISECONDS_TILL_LIVEC
* @param changeObject codeMirror changeObject
*/
function handleChange (editor, changeObject) {
if (dictionary === null) {
return
}
debouncedSpellCheckLeading(changeObject)
debouncedSpellCheck(editor, liveSpellCheckFrom, changeObject)
}