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

Does not detect duplicate unloaded tabs. #81

Open
AJolly opened this issue Dec 27, 2023 · 0 comments
Open

Does not detect duplicate unloaded tabs. #81

AJolly opened this issue Dec 27, 2023 · 0 comments

Comments

@AJolly
Copy link

AJolly commented Dec 27, 2023

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.

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

No branches or pull requests

1 participant