mirror of
https://github.com/koel/koel
synced 2024-12-22 18:43:21 +00:00
17 lines
275 B
JavaScript
17 lines
275 B
JavaScript
import ls from 'local-storage';
|
|
|
|
export default {
|
|
get(key, defaultVal = null) {
|
|
let val = ls(key);
|
|
|
|
return val ? val : defaultVal;
|
|
},
|
|
|
|
set(key, val) {
|
|
return ls(key, val);
|
|
},
|
|
|
|
remove(key) {
|
|
return ls.remove(key);
|
|
},
|
|
};
|