Skip to content

Commit

Permalink
feat(storage): support custom prefix for cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
pooya parsa committed Apr 18, 2020
1 parent 2e115bf commit 7dfb21e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/core/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,8 @@ export default class Storage {
return
}

const _key = this.options.cookie.prefix + key
const _prefix = options.prefix !== undefined ? options.prefix : this.options.cookie.prefix
const _key = _prefix + key
const _options = Object.assign({}, this.options.cookie.options, options)
const _value = encodeValue(value)

Expand Down

0 comments on commit 7dfb21e

Please sign in to comment.