-
Notifications
You must be signed in to change notification settings - Fork 340
Open
Description
seriously, you do not need globalThis...
Lines 580 to 586 in 08cb26b
| isLocalStorage: function() { | |
| try { | |
| return !!globalThis.localStorage; | |
| } catch (e) { | |
| return true; // SecurityError when referencing it means it exists | |
| } | |
| }, |
just use typeof LocalStorage !== 'undefined' instead... don't even need a try catch for that...
Metadata
Metadata
Assignees
Labels
No labels