fix: Fix 500 error due to undefined storage#1939
fix: Fix 500 error due to undefined storage#1939danielh-official wants to merge 1 commit intosveltejs:mainfrom
Conversation
Issue: sveltejs#1938 Because #storage can be undefined, calling getItem as a function throws an error. I've wrapped it in a try...catch block to return the fallback on catch.
|
@danielh-official is attempting to deploy a commit to the Svelte Team on Vercel. A member of the Team first needs to authorize it. |
|
This doesn't sound right to me. If |
|
Ah. |
|
closing in favour of #1941 |
Issue: #1938
Because #storage can be undefined, calling getItem as a function throws an error.
I've wrapped it in a try...catch block to return the fallback on catch.
Before submitting the PR, please make sure you do the following
feat:,fix:,chore:, ordocs:.