Skip to content

Commit

Permalink
🚀 Update package version to 0.0.7
Browse files Browse the repository at this point in the history
- Updated the package.json file to reflect the new version number as 0.0.7.

🔧 Refactor stream-mode.ts

- Modified the selector in the `getGameStats` function to target a specific element using a different class name.
- Improved code readability by updating the selector for `gameContainerElement`.
  • Loading branch information
creazy231 committed Mar 5, 2024
1 parent 4613b1a commit 1ffea31
Show file tree
Hide file tree
Showing 3 changed files with 678 additions and 714 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,5 @@
"preview": "vite preview"
},
"type": "module",
"version": "0.0.6"
"version": "0.0.7"
}
2 changes: 1 addition & 1 deletion src/content-script/stream-mode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ setInterval(() => {
}, 1000);

async function getGameStats() {
const gameContainerElement = await waitForElement("#root > div:nth-of-type(2) > div > div:nth-of-type(2)");
const gameContainerElement = await waitForElement("#root > div:nth-of-type(2) > div > div.chakra-stack");

// count elements inside gameContainerElement
const elementsCount = gameContainerElement?.childElementCount;
Expand Down
Loading

0 comments on commit 1ffea31

Please sign in to comment.