restore size on reopening a closed editor tab

This commit is contained in:
tophf 2017-09-23 21:33:57 +03:00
parent 054528edde
commit 2d8adf1173

View File

@ -602,12 +602,6 @@ queryTabs({currentWindow: true}).then(tabs => {
saveSizeOnClose = sessionStorageHash('saveSizeOnClose').value[windowId];
}
}
chrome.tabs.onRemoved.addListener((tabId, info) => {
sessionStorageHash('manageStylesHistory').unset(tabId);
if (info.windowId === windowId && info.isWindowClosing) {
sessionStorageHash('saveSizeOnClose').unset(windowId);
}
});
});
getOwnTab().then(tab => {