mirror of
https://github.com/koel/koel
synced 2024-12-21 18:13:13 +00:00
15 lines
254 B
JavaScript
15 lines
254 B
JavaScript
import localStore from 'local-storage'
|
|
|
|
export const ls = {
|
|
get (key, defaultVal = null) {
|
|
return localStore(key) || defaultVal
|
|
},
|
|
|
|
set (key, val) {
|
|
return localStore(key, val)
|
|
},
|
|
|
|
remove (key) {
|
|
return localStore.remove(key)
|
|
}
|
|
}
|