mirror of
https://github.com/koel/koel
synced 2024-11-15 08:57:16 +00:00
7 lines
211 B
JavaScript
7 lines
211 B
JavaScript
import localStore from 'local-storage'
|
|
|
|
export const ls = {
|
|
get: (key, defaultVal = null) => localStore(key) || defaultVal,
|
|
set: (key, val) => localStore(key, val),
|
|
remove: key => localStore.remove(key)
|
|
}
|