Assuming global variable exists #1

오픈
opened 2022-10-29 16:10:15 +00:00 by Ghost · 0개의 코멘트

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.
"로그인하여 이 대화에 참여"
레이블 없음
참여자 1명
알림
마감일
마감일이 설정되지 않았습니다.
의존성

No dependencies set.

Reference: coolaj86/local-storage.js#1
No description provided.