Skip to content

Commit

Permalink
refactor(local-storage): update removeItem method to use localStorage…
Browse files Browse the repository at this point in the history
… instead of window.localStorage
  • Loading branch information
alimd committed Oct 25, 2024
1 parent 0474b28 commit 9680a14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/local-storage/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,6 @@ export const localJsonStorage = {
*/
removeItem(name: string, version = 1): void {
const key = this.key_(name, version);
window.localStorage.removeItem(key);
localStorage.removeItem(key);
},
} as const;

0 comments on commit 9680a14

Please sign in to comment.