mirror of
https://github.com/koel/koel
synced 2024-11-15 16:57:56 +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)
|
|
}
|
|
}
|