diff --git a/src/comet-ai.ts b/src/comet-ai.ts index 557a442..8f82852 100644 --- a/src/comet-ai.ts +++ b/src/comet-ai.ts @@ -53,22 +53,30 @@ export class CometAI { throw new Error("Could not find input element. Navigate to Perplexity first."); } - // Use execCommand for contenteditable elements (works with React/Vue) + // Use the actually-matched selector. The previous implementation + // discarded `inputSelector` and tried `[contenteditable="true"]` + // unconditionally, so on pages where the real input was a + // `