Skip to content

Commit

Permalink
fix: openai selector
Browse files Browse the repository at this point in the history
Adding a fallback test-id selector for different versions of chatGPT.
  • Loading branch information
mwyywm committed Jul 29, 2024
1 parent a8f67bb commit fd0bb80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/openai.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class OpenAI extends Provider {

static handleSubmit() {
this.getWebview().executeJavaScript(`{
var btn = document.querySelector('button[data-testid="fruitjuice-send-button"]');
var btn = document.querySelector('button[data-testid="send-button"]') || document.querySelector('button[data-testid="fruitjuice-send-button"]');
if (btn) {
btn.focus();
btn.disabled = false;
Expand Down

0 comments on commit fd0bb80

Please sign in to comment.