Skip to content

Commit

Permalink
deployment bug fix (?)
Browse files Browse the repository at this point in the history
  • Loading branch information
dissorial committed Jun 5, 2023
1 parent b027948 commit 0389537
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions libs/localStorageKeys.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
export const setItem = (key: string, value: string) => {
window.localStorage.setItem(key, value);
if (typeof window !== 'undefined') {
window.localStorage.setItem(key, value);
}
};

export const getItem = (key: string) => {
return window.localStorage.getItem(key);
if (typeof window !== 'undefined') {
return window.localStorage.getItem(key);
}
return null;
};

1 comment on commit 0389537

@vercel
Copy link

@vercel vercel bot commented on 0389537 Jun 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.