The old editorSize conversion code isn't supported anymore

pull/1/head
Alex Beregszaszi 8 years ago
parent 47667fa58e
commit 20911afccf
  1. 9
      src/app.js
  2. 3
      src/app/storage.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 {

@ -49,6 +49,9 @@ function Storage () {
window.localStorage.removeItem(name)
}
})
// remove obsolete key
window.localStorage.removeItem('editor-size-cache')
}
module.exports = Storage

Loading…
Cancel
Save