Ignore any keys not including sol: in keys()

pull/1/head
Alex Beregszaszi 8 years ago
parent d521af5f28
commit 5f635055a2
  1. 6
      src/app/storage.js

@ -19,7 +19,11 @@ function Storage () {
} }
this.keys = function () { this.keys = function () {
return safeKeys().filter(function (item) { return item.replace(/^\.sol:/, '') }) return safeKeys()
// filter any names not including sol:
.filter(function (item) { return item.indexOf('sol:', 0) === 0 })
// remove sol: from filename
.map(function (item) { return item.replace(/^sol:/, '') })
} }
this.remove = function (name) { this.remove = function (name) {

Loading…
Cancel
Save