Skip to content

Commit

Permalink
修正官方輸入框問題調整問題
Browse files Browse the repository at this point in the history
  • Loading branch information
joe committed May 31, 2023
1 parent faa6838 commit 4f5270d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions js/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -3708,10 +3708,8 @@ function findGroupAndIndex(promptId) {
}
});

const chatInput = document.querySelector("form").querySelector("textarea");
const sendButton = document
.querySelector("form")
.querySelector(".absolute.p-1.rounded-md.text-gray-500.right-1");
const chatInput = document.querySelector('#prompt-textarea');
const sendButton = chatInput.parentElement.querySelector("button:last-child") || chatInput.nextElementSibling;

if (!chatInput) {
alert(i18n("alert_not_found_input"));
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "__MSG_extension_name__",
"description": "__MSG_extension_description__",
"author": "Joe",
"version": "1.0.1",
"version": "1.0.2",
"default_locale": "en",
"icons": {
"16": "images/icon/16.png",
Expand Down

0 comments on commit 4f5270d

Please sign in to comment.