mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-20 23:36:21 +08:00
Fix a few tiny sentry errors
This commit is contained in:
parent
65209c6c51
commit
2acb01fb90
|
@ -157,6 +157,9 @@ function wrapMisspelledWords(rootNode) {
|
|||
|
||||
let currentlyRunningSpellChecker = false;
|
||||
const runSpellChecker = _.debounce(rootNode => {
|
||||
if (!Spellchecker.handler) {
|
||||
return;
|
||||
}
|
||||
currentlyRunningSpellChecker = true;
|
||||
unwrapWords(rootNode);
|
||||
Spellchecker.handler.provideHintText(rootNode.textContent).then(() => {
|
||||
|
|
|
@ -29,7 +29,9 @@ class QuotedHTMLTransformer {
|
|||
const doc = this._parseHTML(html);
|
||||
|
||||
for (const el of this._findQuoteElements(doc, options)) {
|
||||
el.remove();
|
||||
if (el) {
|
||||
el.remove();
|
||||
}
|
||||
}
|
||||
|
||||
// It's possible that the entire body was quoted text anyway and we've
|
||||
|
@ -45,7 +47,9 @@ class QuotedHTMLTransformer {
|
|||
}
|
||||
|
||||
for (const el of quoteStringDetector(doc)) {
|
||||
el.remove();
|
||||
if (el) {
|
||||
el.remove();
|
||||
}
|
||||
}
|
||||
|
||||
this._removeImagesStrippedByAnotherClient(doc);
|
||||
|
|
Loading…
Reference in a new issue