Skip to content

Commit 88c7d66

Browse files
committed
Update the OpenRouter generation check to use the .animate-spin class selector instead of a specific SVG path selector
1 parent 2a320d9 commit 88c7d66

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

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

‎packages/browser/src/content-scripts/send-prompt-content-script/chatbots/openrouter.ts‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -305,10 +305,7 @@ export const openrouter: Chatbot = {
305305

306306
observe_for_responses({
307307
chatbot_name: 'OpenRouter',
308-
is_generating: () =>
309-
!!document.querySelector(
310-
'path[d="M4.5 7.5a3 3 0 0 1 3-3h9a3 3 0 0 1 3 3v9a3 3 0 0 1-3-3h-9a3 3 0 0 1-3-3v-9Z"]'
311-
),
308+
is_generating: () => !!document.querySelector('.animate-spin'),
312309
footer_selector: 'div[data-message-id] > div > div:last-child > div',
313310
add_buttons
314311
})

0 commit comments

Comments
 (0)