Implement detach button functionality

This commit is contained in:
Nick Krichevsky 2015-03-05 22:05:04 -05:00
parent 820fa46f58
commit b615fff748

View file

@ -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();