restore size on reopening a closed editor tab
This commit is contained in:
parent
054528edde
commit
2d8adf1173
|
@ -602,12 +602,6 @@ queryTabs({currentWindow: true}).then(tabs => {
|
||||||
saveSizeOnClose = sessionStorageHash('saveSizeOnClose').value[windowId];
|
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 => {
|
getOwnTab().then(tab => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user