remix-lib storage prefix instance improved

toaster-react
aniket-engg 4 years ago committed by Aniket
parent 168f48c101
commit 122a8dc3d8
  1. 4
      libs/remix-lib/src/storage.ts

@ -73,8 +73,8 @@ export class Storage {
keys () {
return this.safeKeys()
// filter any names not including the prefix
.filter(function (item) { return item.indexOf(this.prefix, 0) === 0 })
.filter(item => item.indexOf(this.prefix, 0) === 0)
// remove prefix from filename and add the 'browser' path
.map(function (item) { return item.substr(this.prefix.length) })
.map(item => item.substr(this.prefix.length))
}
}

Loading…
Cancel
Save