diff background.js @ 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 e32b90567f39
children 4704e5216412
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);