Skip to content

Commit

Permalink
1.4.7
Browse files Browse the repository at this point in the history
- Updated packages
- Added timeout after scrolling back to top
- Some Docker improvement thanks to @mgrimace
  • Loading branch information
TheNetsky committed May 28, 2024
1 parent 9a144b2 commit 9b1eed5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "microsoft-rewards-script",
"version": "1.4.6",
"version": "1.4.7",
"description": "Automatically do tasks for Microsoft Rewards but in TS!",
"main": "index.js",
"engines": {
Expand All @@ -26,17 +26,17 @@
"author": "Netsky",
"license": "ISC",
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^6.20.0",
"eslint": "^8.56.0",
"@typescript-eslint/eslint-plugin": "^7.11.0",
"eslint": "^8.57.0",
"eslint-plugin-modules-newline": "^0.0.6",
"typescript": "^5.3.3"
"typescript": "^5.4.5"
},
"dependencies": {
"axios": "^1.6.7",
"axios": "^1.7.2",
"cheerio": "^1.0.0-rc.12",
"fingerprint-generator": "^2.1.49",
"fingerprint-injector": "^2.1.49",
"playwright": "^1.42.0",
"fingerprint-generator": "^2.1.51",
"fingerprint-injector": "^2.1.51",
"playwright": "^1.44.1",
"ts-node": "^10.9.2"
}
}
2 changes: 2 additions & 0 deletions src/functions/activities/Search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ export class Search extends Workers {
window.scrollTo(0, 0)
})

await this.bot.utils.wait(500)

const searchBar = '#sb_form_q'
await searchPage.waitForSelector(searchBar, { state: 'visible', timeout: 10_000 })
await searchPage.click(searchBar) // Focus on the textarea
Expand Down
1 change: 1 addition & 0 deletions start.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm run start

0 comments on commit 9b1eed5

Please sign in to comment.