brcontainer / prevent-duplicate-tabs

Simple add-on/extension for prevent duplicate tabs
MIT License
62 stars 7 forks source link

switch to old tab if active is closed #37

Open forivall opened 1 year ago

forivall commented 1 year ago

Fixes #36 (scenario 2)

I also add a bunch of jsdoc and such so typescript can understand the code. (also, changed substr to slice, since substr is deprecated). Could use substring instead, but i prefer slice). If undesired, we can just merge the commit with the change: https://github.com/brcontainer/prevent-duplicate-tabs/compare/main...forivall:prevent-duplicate-tabs:feature/switch-to-existing