Fix moving of more than one tab to a new window. Fixes #746

This commit is contained in:
Jonathan Kingston 2017-08-22 18:54:32 +01:00
parent 4618b06698
commit 3e810cb560

View file

@ -120,7 +120,7 @@ const backgroundLogic = {
const window = await browser.windows.create({
tabId: list.shift().id
});
browser.tabs.move(list, {
browser.tabs.move(list.map((tab) => tab.id), {
windowId: window.id,
index: -1
});