mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-30 00:50:50 +01:00
fix localstorage-i blame bill for my fuckup
This commit is contained in:
parent
aba4ddf2db
commit
cc6382bf0a
@ -2,7 +2,7 @@ export const GetLocalStorage = <T>(key: string) =>
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
JSON.parse(window.localStorage.getItem(key)) as T ?? null
|
return JSON.parse(window.localStorage.getItem(key)) as T ?? null
|
||||||
}
|
}
|
||||||
catch(e)
|
catch(e)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user