Assuming global variable exists #1

otevřený
otevřeno 2022-10-29 16:10:15 +00:00 uživatelem Ghost · 0 komentářů

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.
Přihlaste se pro zapojení do konverzace.
Bez štítku
1 účastníků
Oznámení
Termín dokončení
Žádný termín dokončení.
Závislosti

Nejsou nastaveny žádné závislosti.

Reference: coolaj86/local-storage.js#1
K dispozici není žádný popis.