Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
fix(chrome-ext): ignore `spellcheck="false"` on `outlook.live.com` (#4698)
Elijah Potterad7108687a15
diff --git a/packages/chrome-plugin/src/contentScript/index.ts b/packages/chrome-plugin/src/contentScript/index.tsindex 54a494686..209b7ed63 100644--- a/packages/chrome-plugin/src/contentScript/index.ts+++ b/packages/chrome-plugin/src/contentScript/index.ts@@ -170,14 +170,16 @@ function scan() {// editor, so treat it the same way we treat Lexical editors: don't skip it purely because// spellcheck is disabled.const isQuillEditor = element.classList.contains('ql-editor');- // Allow Gmail compose fields even when Gmail disables browser spellcheck.- const isGmail = window.location.hostname === 'mail.google.com';+ // Allow Gmail and Outlook compose fields even when they disable browser spellcheck.+ const isWebmail =+ window.location.hostname === 'mail.google.com' ||+ window.location.hostname === 'outlook.live.com';if (element.matches('[role="combobox"]') ||element.getAttribute('data-enable-grammarly') === 'false' ||(element.getAttribute('spellcheck') === 'false' &&- !isGmail &&+ !isWebmail &&!isLexicalEditor &&!isQuillEditor &&element.getAttribute('data-language') !== 'markdown')