mirror of
https://github.com/dsoaress/link-free.git
synced 2026-11-21 19:08:33 +00:00
feat(wip): add dashboard
This commit is contained in:
10 files changed
+208
-3
No files matched your search
@@ -0,0 +1,14 @@
|
||||
const KEY = 'link-free-data'
|
||||
|
||||
export function getLocalStorageData() {
|
||||
const data = process.browser && localStorage.getItem(KEY)
|
||||
return data ? JSON.parse(data) : null
|
||||
}
|
||||
|
||||
export function setLocalStorageData(data = {}) {
|
||||
localStorage.setItem(KEY, JSON.stringify(data))
|
||||
}
|
||||
|
||||
export function removeLocalStorageData() {
|
||||
localStorage.removeItem(KEY)
|
||||
}
|
||||
Reference in new issue
Block a user