From 56336a5b47df31b2ae8799f6cf3840fa381df131 Mon Sep 17 00:00:00 2001 From: mrmr1993 Date: Sat, 21 Jun 2014 20:31:49 +0100 Subject: Fix "move tab to new window" for incognito tabs --- background_scripts/main.coffee | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee index 3b7670d4..072745d7 100644 --- a/background_scripts/main.coffee +++ b/background_scripts/main.coffee @@ -236,8 +236,9 @@ BackgroundCommands = chrome.tabs.duplicate(tab.id) selectionChangedHandlers.push(callback)) moveTabToNewWindow: (callback) -> - chrome.tabs.getSelected(null, (tab) -> - chrome.windows.create({tabId: tab.id})) + chrome.tabs.query {active: true, currentWindow: true}, (tabs) -> + tab = tabs[0] + chrome.windows.create {tabId: tab.id, incognito: tab.incognito} nextTab: (callback) -> selectTab(callback, "next") previousTab: (callback) -> selectTab(callback, "previous") firstTab: (callback) -> selectTab(callback, "first") -- cgit v1.2.3