Fix bug where widnow wouldn't be removed from list, and add setHeights to window close
This commit is contained in:
parent
f9909383a4
commit
4d3a4308d4
8
popup.js
8
popup.js
|
@ -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();
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue