Skip to content

Commit

Permalink
Change tabs numbers on moving from other window
Browse files Browse the repository at this point in the history
  • Loading branch information
amoore17 committed Jan 17, 2020
1 parent 9dd409a commit cf7112a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,4 @@ This extension writes the tab number to the first eight tabs, the ones accessibl
## Known issues

- does not add numbers to pinned tabs, internal error pages, "new tab" pages or other special tabs

- does not keep in sync when dragging tabs to/from another window

- will mess up with titles already starting with the characters `¹`...``
3 changes: 3 additions & 0 deletions tab-numbering.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ const updateAll = () => {
// Must listen for opening anchors in new tabs
browser.tabs.onCreated.addListener(updateAll);

// Must listen for tabs being attached from other windows
browser.tabs.onAttached.addListener(updateAll);

browser.tabs.onMoved.addListener(updateAll);

// Firefox seems to do this inconsistently, thus this setTimeout kludge
Expand Down

0 comments on commit cf7112a

Please sign in to comment.