Skip to content

Commit

Permalink
Fix listen element
Browse files Browse the repository at this point in the history
  • Loading branch information
chenqianhe committed May 16, 2024
1 parent dc46b95 commit f5a11ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "ChatGPT Consumption",
"description": "Show how many tokens and resources the conversation consumed",
"version": "1.1",
"version": "1.1.1",
"action": {
"default_popup": "popup/popup.html"
},
Expand Down
2 changes: 1 addition & 1 deletion scripts/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ async function injectCustomElement() {
// 创建一个观察器
var mainElement = document.querySelector("main");
if (mainElement) {
new MutationObserver(updateCount).observe(mainElement.children[1].children[0],
new MutationObserver(updateCount).observe(mainElement.children[0].children[0],
{childList: true, characterData: true, subtree: true}
);
} else {
Expand Down

0 comments on commit f5a11ec

Please sign in to comment.