simple-window-saver
simple-window-saver copied to clipboard
Opening a saved window then closing it clears the state
If you open a saved window and close it before the tabs are fully loaded, the saved window contains 0 tabs.
Need to Recheck if the window is closing. Think the chrome.window.get or chrome.tabs.getAllInWindow is asynchronous. So the to modify the window is firing after window has started to close. Added recheck to eventHandlers
getPopulatedWindow(windowId, function(browserWindow) {
+ if (isWindowClosing[windowId]||istabLoading[tabId]){
+ return;
+ }
Still an issue :(