close sse

This commit is contained in:
Rafi
2023-02-12 15:42:05 +08:00
parent 6dfc92ede9
commit 4bbe3ed38d
5 changed files with 11 additions and 65 deletions

View File

@@ -1,13 +1,10 @@
const get = (key) => {
if (typeof window !== 'undefined') {
let val = localStorage.getItem(key)
if (val) {
val = JSON.parse(val)
}
return val
let val = localStorage.getItem(key)
if (val) {
val = JSON.parse(val)
}
return null
return val
}
const set = (key, val) => {