Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
fix(chrome-ext): Harper not activating in Instagram DMs (#3145)
Elijah Potter82b1dac41d05
diff --git a/packages/chrome-plugin/src/contentScript/index.ts b/packages/chrome-plugin/src/contentScript/index.tsindex a0b43d55f..9f70db295 100644--- a/packages/chrome-plugin/src/contentScript/index.ts+++ b/packages/chrome-plugin/src/contentScript/index.ts@@ -161,10 +161,13 @@ function scan() {return;}+ const isLexicalEditor = element.getAttribute('data-lexical-editor') === 'true';+if (element.matches('[role="combobox"]') ||element.getAttribute('data-enable-grammarly') === 'false' ||(element.getAttribute('spellcheck') === 'false' &&+ !isLexicalEditor &&element.getAttribute('data-language') !== 'markdown')) {return;