diff --git a/src/app.js b/src/app.js index 58a6ae764e..6c7016b15c 100644 --- a/src/app.js +++ b/src/app.js @@ -369,7 +369,6 @@ var run = function () { // ----------------- resizeable ui --------------- - var EDITOR_SIZE_KEY = 'editor-size-cache' var EDITOR_WINDOW_SIZE = 'editorWindowSize' var dragging = false @@ -413,14 +412,6 @@ var run = function () { } }) - // convert old browser-solidity - if (storage.exists(EDITOR_SIZE_KEY)) { - if (!config.exists(EDITOR_WINDOW_SIZE)) { - config.set(EDITOR_WINDOW_SIZE, storage.get(EDITOR_SIZE_KEY)) - } - storage.remove(EDITOR_SIZE_KEY) - } - if (config.exists(EDITOR_WINDOW_SIZE)) { setEditorSize(config.get(EDITOR_WINDOW_SIZE)) } else { diff --git a/src/app/storage.js b/src/app/storage.js index f6dc715bb9..eb305531b4 100644 --- a/src/app/storage.js +++ b/src/app/storage.js @@ -49,6 +49,9 @@ function Storage () { window.localStorage.removeItem(name) } }) + + // remove obsolete key + window.localStorage.removeItem('editor-size-cache') } module.exports = Storage