From 4d3a4308d4aaf8057cc9984a04a7e635c639e35e Mon Sep 17 00:00:00 2001 From: Nick Krichevsky Date: Sat, 7 Mar 2015 12:26:47 -0500 Subject: [PATCH] Fix bug where widnow wouldn't be removed from list, and add setHeights to window close --- popup.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/popup.js b/popup.js index ced55dc..c2d6bf7 100644 --- a/popup.js +++ b/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(); + }); } });