mirror of
https://github.com/dsoaress/link-free.git
synced 2026-11-21 19:08:33 +00:00
feat: test ISR
This commit is contained in:
26 files changed
+295
-192
No files matched your search
@@ -1,6 +1,8 @@
|
||||
import type { Data } from '../types/Data'
|
||||
|
||||
const KEY = 'link-free-data'
|
||||
|
||||
export function getLocalStorageData() {
|
||||
export function getLocalStorageData(): Data | null {
|
||||
const data = process.browser && localStorage.getItem(KEY)
|
||||
return data ? JSON.parse(data) : null
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user