From b615fff74849d26954b444809b1cc1364b16d5de Mon Sep 17 00:00:00 2001 From: Nick Krichevsky Date: Thu, 5 Mar 2015 22:05:04 -0500 Subject: [PATCH] Implement detach button functionality --- popup.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/popup.js b/popup.js index 50a1d37..f458d20 100644 --- a/popup.js +++ b/popup.js @@ -236,6 +236,10 @@ function setupTabs(tabs,callback){ } }); + detachButton.addEventListener('click', function(event) { + chrome.windows.create({"tabId":currentTab.id}); + }); + //Switches to the tab clicked li.addEventListener('click',function(event){ event.stopPropagation();