Open AJolly opened 10 months ago
It only handles searching for tabs who's status is complete, not unloaded. (for example, if you are using a tab suspending plugin)
I edited the helper function isTabComplete to also return true for unloaded, and it seems to fix the problem, but it may have other issues.
const isTabComplete = tab => tab.status === "complete" || tab.status === "unloaded"; //test also will work for unloaded tabs.
It only handles searching for tabs who's status is complete, not unloaded. (for example, if you are using a tab suspending plugin)
I edited the helper function isTabComplete to also return true for unloaded, and it seems to fix the problem, but it may have other issues.
const isTabComplete = tab => tab.status === "complete" || tab.status === "unloaded"; //test also will work for unloaded tabs.