addons/firefox-addons/tab-mover
changeset 17:6b4680867e49
Remove incorrect specification of the tab position when creating new tabs
The index parameter of browser.tabs.create() does not accept -1, leaving it out
adds the newly created tab on the rightmost position as intended (bug reported
by Daniele).
The index parameter of browser.tabs.create() does not accept -1, leaving it out
adds the newly created tab on the rightmost position as intended (bug reported
by Daniele).
author | Guido Berhoerster <guido+tab-mover@berhoerster.name> |
---|---|
date | Thu May 31 12:57:40 2018 +0200 (2018-05-31) |
parents | 1e7567327f1b |
children | cb06734b3a7b |
files | background.js |
line diff
1.1 --- a/background.js Wed Feb 22 09:18:14 2017 +0100 1.2 +++ b/background.js Thu May 31 12:57:40 2018 +0200 1.3 @@ -381,7 +381,6 @@ 1.4 browser.tabs.create({ 1.5 url: tab.url, 1.6 windowId, 1.7 - index: -1 1.8 }).then(newTab => { 1.9 // close the current tab 1.10 return browser.tabs.remove(tab.id);