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).
author Guido Berhoerster <guido+tab-mover@berhoerster.name>
date Thu, 31 May 2018 12:57:40 +0200
parents 1e7567327f1b
children cb06734b3a7b
files background.js
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/background.js	Wed Feb 22 09:18:14 2017 +0100
+++ b/background.js	Thu May 31 12:57:40 2018 +0200
@@ -381,7 +381,6 @@
             browser.tabs.create({
                 url: tab.url,
                 windowId,
-                index: -1
             }).then(newTab => {
                 // close the current tab
                 return browser.tabs.remove(tab.id);