don't restore size of editor window if it has many tabs

previously it happened occasionally on browser startup resulting in unwanted resizing of the main browser window
This commit is contained in:
tophf 2017-08-18 17:06:39 +03:00
parent 21b2ba572b
commit 92ab165192

View File

@ -450,7 +450,7 @@ queryTabs({currentWindow: true}).then(tabs => {
const windowId = tabs[0].windowId; const windowId = tabs[0].windowId;
if (prefs.get('openEditInWindow')) { if (prefs.get('openEditInWindow')) {
if ( if (
sessionStorage.saveSizeOnClose && /true/.test(sessionStorage.saveSizeOnClose) &&
'left' in prefs.get('windowPosition', {}) && 'left' in prefs.get('windowPosition', {}) &&
!isWindowMaximized() !isWindowMaximized()
) { ) {