Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

climbing: Fix undefined window #289

Merged
merged 1 commit into from
Apr 7, 2024
Merged

climbing: Fix undefined window #289

merged 1 commit into from
Apr 7, 2024

Conversation

jvaclavik
Copy link
Collaborator

No description provided.

Copy link

vercel bot commented Apr 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
osmapp ✅ Ready (Inspect) Visit Preview Apr 7, 2024 10:55am

@jvaclavik jvaclavik force-pushed the climbing-window-fix branch from b4f6e74 to f5a8622 Compare April 7, 2024 10:53
@jvaclavik jvaclavik merged commit 8e3f699 into master Apr 7, 2024
2 checks passed
@jvaclavik jvaclavik deleted the climbing-window-fix branch April 7, 2024 11:08
@@ -4,6 +4,7 @@ const KEY = 'ascents';

// @TODO generic util?
export const getLocalStorageItem = (key: string) => {
if (typeof window === 'undefined') return [];
Copy link
Owner

Choose a reason for hiding this comment

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

btw, i created two helpers isBrowser and isServer, just fyi, this is fine too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants