Commit 20911afc authored by Alex Beregszaszi's avatar Alex Beregszaszi

The old editorSize conversion code isn't supported anymore

parent 47667fa5
...@@ -369,7 +369,6 @@ var run = function () { ...@@ -369,7 +369,6 @@ var run = function () {
// ----------------- resizeable ui --------------- // ----------------- resizeable ui ---------------
var EDITOR_SIZE_KEY = 'editor-size-cache'
var EDITOR_WINDOW_SIZE = 'editorWindowSize' var EDITOR_WINDOW_SIZE = 'editorWindowSize'
var dragging = false var dragging = false
...@@ -413,14 +412,6 @@ var run = function () { ...@@ -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)) { if (config.exists(EDITOR_WINDOW_SIZE)) {
setEditorSize(config.get(EDITOR_WINDOW_SIZE)) setEditorSize(config.get(EDITOR_WINDOW_SIZE))
} else { } else {
......
...@@ -49,6 +49,9 @@ function Storage () { ...@@ -49,6 +49,9 @@ function Storage () {
window.localStorage.removeItem(name) window.localStorage.removeItem(name)
} }
}) })
// remove obsolete key
window.localStorage.removeItem('editor-size-cache')
} }
module.exports = Storage module.exports = Storage
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment