Implement detach button functionality
This commit is contained in:
parent
820fa46f58
commit
b615fff748
4
popup.js
4
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
|
//Switches to the tab clicked
|
||||||
li.addEventListener('click',function(event){
|
li.addEventListener('click',function(event){
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
|
|
Loading…
Reference in a new issue