Assuming global variable exists #1
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Your program assumes that the global variable exists, which it may not.
Please change
if (global.localStorage) {
toif (global && global.localStorage) {
so apps that use this don't crash.