diff options
| author | Stephen Blott | 2015-06-25 08:22:24 +0100 |
|---|---|---|
| committer | Stephen Blott | 2015-06-25 08:22:27 +0100 |
| commit | 9275c7a40cebb18e4c4593c9dd8a06ce655e2757 (patch) | |
| tree | 751533df35320e8aae93fc1ca125db642ca9a406 | |
| parent | cb42acfc59c10df4c0fd56f068c83c7509d5a237 (diff) | |
| download | vimium-9275c7a40cebb18e4c4593c9dd8a06ce655e2757.tar.bz2 | |
Set the parent tab when creating tabs.
If the tab is subsequently deleted, then we return to the original tab
(as opposed to the one on its right).
| -rw-r--r-- | background_scripts/main.coffee | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee index 28959d35..4cb78441 100644 --- a/background_scripts/main.coffee +++ b/background_scripts/main.coffee @@ -204,6 +204,7 @@ openUrlInNewTab = (request, callback) -> index: tab.index + 1 selected: true windowId: tab.windowId + openerTabId: tab.id # FIXME(smblott). openUrlInNewTab is being called in two different ways with different arguments. We # should refactor it such that this check on callback isn't necessary. callback = (->) unless typeof callback == "function" |
