Assuming global variable exists #1

Aberto
2022-10-29 16:10:15 +00:00 abertas por Ghost · 0 comentários

Your program assumes that the global variable exists, which it may not.

Please change if (global.localStorage) { to if (global && global.localStorage) { so apps that use this don't crash.

Your program assumes that the global variable exists, which it may not. Please change `if (global.localStorage) {` to `if (global && global.localStorage) {` so apps that use this don't crash.
Acesse para participar desta conversação.
Sem etiqueta
1 participante(s)
Notificações
Data limite
Data limite não informada.
Dependências

Nenhuma dependência definida.

Referência: coolaj86/local-storage.js#1
Nenhuma descrição fornecida.