buid
This commit is contained in:
parent
0cbe901499
commit
dbe0f66daf
51 changed files with 30 additions and 304 deletions
4
src/local/index.ts
Normal file → Executable file
4
src/local/index.ts
Normal file → Executable file
|
|
@ -6,8 +6,8 @@ export const localValor = <T>(
|
|||
chave_: string | any,
|
||||
valor?: T | null,
|
||||
): T | null => {
|
||||
const localStorage = globalThis.localStorage
|
||||
|
||||
const localStorage =
|
||||
"localStorage" in globalThis ? (globalThis as any).localStorage : undefined
|
||||
if (typeof localStorage == "undefined") return null
|
||||
|
||||
const chave =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue