Variable safeStorageConst
safeStorage: {
get(key: string): string | null;
set(key: string, value: string): void;
} = ...
Type Declaration
-
get: function
-
get(key: string): string | null
Returns string | null
-
set: function
-
set(key: string, value: string): void
Parameters
- key: string
- value: string
Returns void
localStorage that never throws: in private mode or with blocked storage it just forgets.