Chrome tabs query returning empty tab array
Sounds like you’re running this code while your active window is devtools, which is a known bug. Another problem takes place in your code: it always accesses the focused (active) tab even though the request may have occurred in a backgrounded (inactive) tab. Solution: Use the tab id provided inside the listener function parameter as … Read more