Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NEEDS TESTING: Added lookupDelay with ASUS configuration #2124

Closed
wants to merge 1 commit into from

Conversation

Fmstrat
Copy link
Contributor

@Fmstrat Fmstrat commented Mar 11, 2021

Description

The Asus store uses an anti-bot feature to show "add to cart" briefly before changing to an out of stock button. This fix circumvents that by delaying a configured amount of time per store (when specified). This is an untested PR, but can serve as a foundation for a fix if it does not function out of the box.

Fixes: #1901

Testing

Run app, ensure calls to asus.com do not report false positives.

@Fmstrat Fmstrat requested a review from jef as a code owner March 11, 2021 15:30
@tseanard
Copy link

The code changes on their own in that commit generate 143 errors (due to not propagating the lookupDelay through everywhere VSCode thinks it should go.

With that said, I tried hard coding a 3 second and a 10 second delay in the file with if (store.lookupDelay) { ... }, and even with a 10 second delay I am still getting false hits on the Asus store

@Fmstrat Fmstrat closed this Mar 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Asus store reports in stock cards but no stock is shown in browser.
2 participants