Merge pull request #27 from anri-asaturov/master

Allow custom namespace for store
release
Etienne Lemay 2016-12-07 20:56:43 -05:00 committed by GitHub
commit 0295f673b1
1 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,4 @@
const NAMESPACE = 'emoji-mart'
var NAMESPACE = 'emoji-mart'
var isLocalStorageSupported = typeof window !== 'undefined' &&
'localStorage' in window
@ -24,4 +24,8 @@ function get(key) {
}
}
export default { update, set, get }
function setNamespace(namespace){
NAMESPACE = namespace
}
export default { update, set, get, setNamespace }