diff --git a/edit.js b/edit.js index c516828b..d681002c 100644 --- a/edit.js +++ b/edit.js @@ -409,8 +409,12 @@ chrome.tabs.query({currentWindow: true}, function(tabs) { var windowId = tabs[0].windowId; if (prefs.getPref("openEditInWindow")) { if (tabs.length == 1 && window.history.length == 1) { - sessionStorageHash("saveSizeOnClose").set(windowId, true); - saveSizeOnClose = true; + chrome.windows.getAll(function(windows) { + if (windows.length > 1) { + sessionStorageHash("saveSizeOnClose").set(windowId, true); + saveSizeOnClose = true; + } + }); } else { saveSizeOnClose = sessionStorageHash("saveSizeOnClose").value[windowId]; }