mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-22 08:47:06 +08:00
✨ Feature: add interval for sync setting
This commit is contained in:
@@ -1,10 +1,7 @@
|
||||
class LS {
|
||||
get (name: string) {
|
||||
if (localStorage.getItem(name)) {
|
||||
return JSON.parse(localStorage.getItem(name) as string)
|
||||
} else {
|
||||
return {}
|
||||
}
|
||||
const item = localStorage.getItem(name) as string
|
||||
return item ? JSON.parse(item) : {}
|
||||
}
|
||||
|
||||
set (name: string, value: any) {
|
||||
|
||||
Reference in New Issue
Block a user