format: whole project
This commit is contained in:
1 parent
b883b5f6e0
commit
80269cf275
79 files changed
+590
-612
No files matched your search
+2
-2
@@ -19,7 +19,7 @@ interface SessionStorage {
|
||||
|
||||
export const setSessionStorage = (
|
||||
key: keyof SessionStorage,
|
||||
value: SessionStorage[typeof key]
|
||||
value: SessionStorage[typeof key],
|
||||
) => {
|
||||
if (!browser) return
|
||||
if (value == undefined) {
|
||||
@@ -30,7 +30,7 @@ export const setSessionStorage = (
|
||||
}
|
||||
|
||||
export const getSessionStorage = (
|
||||
key: keyof SessionStorage
|
||||
key: keyof SessionStorage,
|
||||
): SessionStorage[typeof key] => {
|
||||
if (!browser) return
|
||||
return JSON.parse(sessionStorage.getItem(key)!)
|
||||
|
||||
Reference in new issue
Block a user