Skip to content

Commit

Permalink
feature: On Reset, remove LSM storage (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
ciganandrea authored Feb 17, 2021
1 parent 1f37162 commit 00752af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/logic/devTool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ export function setUpDevTools(
) {
if (typeof window === 'undefined') return;

window.__LSM__ = name;

window.__LSM_NAME__ = name;

window.__LSM_DEBUG__ = (value: string) =>
storageType.setItem('___LSM_DEBUG__', value);

window.__LSM_RESET__ = () => storageType.clear();
window.__LSM_RESET__ = () => storageType.removeItem(name);

window.__LSM_GET_STORE__ = () => storageType.getItem(name);

Expand Down

0 comments on commit 00752af

Please sign in to comment.