Skip to content

Commit

Permalink
Fixing restock monitor tests and tweaking docker default config example,
Browse files Browse the repository at this point in the history
  • Loading branch information
dgtlmoon committed Sep 2, 2024
1 parent 1cb3834 commit 60d2921
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion changedetectionio/content_fetchers/res/stock-not-in-stock.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ function isItemInStock() {
const element = elementsToScan[i];
// outside the 'fold' or some weird text in the heading area
// .getBoundingClientRect() was causing a crash in chrome 119, can only be run on contentVisibility != hidden
if (element.getBoundingClientRect().top + window.scrollY >= vh + 250 || element.getBoundingClientRect().top + window.scrollY <= 200) {
// Note: theres also an automated test that places the 'out of stock' text fairly low down
if (element.getBoundingClientRect().top + window.scrollY >= vh + 250 || element.getBoundingClientRect().top + window.scrollY <= 100) {
continue
}
elementText = "";
Expand Down

0 comments on commit 60d2921

Please sign in to comment.