Skip to content

Commit

Permalink
Fix #5 - Open links with blank target, on the right
Browse files Browse the repository at this point in the history
For some reason, the lastActiveTabId ends up being the same as the newly created tab.
  • Loading branch information
nralbrecht committed Nov 23, 2016
1 parent 6d143de commit a8a91d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion background-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ chrome.tabs.onActivated.addListener(function(activeInfo) {

chrome.tabs.onCreated.addListener(function(tab) {
chrome.tabs.get(lastActiveTabId, function(lastActiveTab) {
if (lastActiveTab.pinned) {
if (lastActiveTab.pinned || lastActiveTabId === tab.id) {
chrome.tabs.move(tab.id, {
index: -1
}, function() {
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

"manifest_version": 2,
"name": "Pined Tab Fix",
"version": "2.0.4",
"version": "2.0.5",

"description": "__MSG_extensionDescription__",
"homepage_url": "https://github.com/nralbrecht/pinned-tab-fix",
Expand Down

0 comments on commit a8a91d6

Please sign in to comment.