From 2d8adf1173ca5a65c0f4ab70bd7c1d99df391ea1 Mon Sep 17 00:00:00 2001 From: tophf Date: Sat, 23 Sep 2017 21:33:57 +0300 Subject: [PATCH] restore size on reopening a closed editor tab --- edit/edit.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/edit/edit.js b/edit/edit.js index 8b7a36f2..49f695c3 100644 --- a/edit/edit.js +++ b/edit/edit.js @@ -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 => {