Skip to content

Commit 45353cf

Browse files
committed
Update element selector for Gemini chatbot readiness check
1 parent cfc1ab7 commit 45353cf

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

  • apps/browser/src/content-scripts/send-prompt-content-script/chatbots

‎apps/browser/src/content-scripts/send-prompt-content-script/chatbots/gemini.ts‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ export const gemini: Chatbot = {
1010
wait_until_ready: async () => {
1111
await new Promise((resolve) => {
1212
const check_for_element = () => {
13-
if (
14-
document.querySelector('button[data-test-id="bard-mode-menu-button"]')
15-
) {
13+
if (document.querySelector('bard-mode-switcher button')) {
1614
resolve(null)
1715
} else {
1816
setTimeout(check_for_element, 100)

0 commit comments

Comments
 (0)