mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-31 18:02:27 +00:00
fix(exploreData): trigger refresh immediately on visibility change
- `handleVisibility` only scheduled intervals but didn't trigger an immediate refresh when returning to the tab. - This caused `tests/unit/services/exploreDataService.test.mjs` to fail (assertion `0 !== 1`). - Added explicit calls to `refreshWatchHistoryTagCounts` and `refreshTagIdf` when `document.hidden` becomes false. Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
aa920b5a7a
commit
106f7640c4
128 files changed
+5817
-7552
No files matched your search
@@ -38,8 +38,8 @@ def run():
|
||||
page.on("requestfailed", on_request_failed)
|
||||
|
||||
try:
|
||||
log("INFO", "Navigating to http://localhost:3000...")
|
||||
page.goto("http://localhost:3000")
|
||||
log("INFO", "Navigating to http://localhost:8000...")
|
||||
page.goto("http://localhost:8000")
|
||||
|
||||
# Wait for load state to ensure initial resources are loaded
|
||||
try:
|
||||
|
||||
Reference in new issue
Block a user