Commit 122a8dc3 authored by aniket-engg's avatar aniket-engg Committed by Aniket

remix-lib storage prefix instance improved

parent 168f48c1
......@@ -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))
}
}
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