Peuj / duplicate-tabs-closer

Duplicate Tabs Closer - Detects and closes duplicate tabs for Chrome and Firefox.
GNU General Public License v3.0
167 stars 29 forks source link

Does not detect duplicate unloaded tabs. #81

Open AJolly opened 10 months ago

AJolly commented 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.