Fix bug where widnow wouldn't be removed from list, and add setHeights to window close

This commit is contained in:
Nick Krichevsky 2015-03-07 12:26:47 -05:00
parent f9909383a4
commit 4d3a4308d4

View file

@ -149,13 +149,19 @@ function setupWindowElement(currentWindow,callback){
var windowId = parseInt(windowItem.getAttribute("windowId"));
if (windowId!==currentWindow.id){
chrome.windows.remove(windowId,function(){
console.log(windowItem);
conosle.log(windowName.parentNode);
windowItem.parentNode.removeChild(windowItem);
setHeights();
});
}
});
}
else{
chrome.windows.remove(currentWindow.id);
chrome.windows.remove(currentWindow.id,function(){
li.parentNode.removeChild(li);
setHeights();
});
}
});