Tldraw/apps/dotcom/src/utils
Steve Ruiz 2f28d7c6f8
Protect local storage calls (#3043)
This PR provides some safe wrappers for local storage calls. Local
storage is not available in all environments (for example, a React
Native web view). The PR also adds an eslint rule preventing direct
calls to local / session storage.

### Change Type

- [x] `patch` — Bug fix

### Release Notes

- Fixes a bug that could cause crashes in React Native webviews.
2024-03-04 13:37:09 +00:00
..
context-menu tldraw_final_v6_final(old version).docx.pdf (#2998) 2024-02-29 16:06:19 +00:00
migration tldraw_final_v6_final(old version).docx.pdf (#2998) 2024-02-29 16:06:19 +00:00
remote-sync tldraw_final_v6_final(old version).docx.pdf (#2998) 2024-02-29 16:06:19 +00:00
assetUrls.ts [dotcom] Delete service worker, cache tldraw assets (#2552) 2024-01-19 15:31:01 +00:00
cloneAssetForShare.ts tldraw_final_v6_final(old version).docx.pdf (#2998) 2024-02-29 16:06:19 +00:00
config.ts unbrivate, dot com in (#2475) 2024-01-16 14:38:05 +00:00
createAssetFromFile.ts tldraw_final_v6_final(old version).docx.pdf (#2998) 2024-02-29 16:06:19 +00:00
createAssetFromUrl.ts tldraw_final_v6_final(old version).docx.pdf (#2998) 2024-02-29 16:06:19 +00:00
defineLoader.tsx unbrivate, dot com in (#2475) 2024-01-16 14:38:05 +00:00
env.ts unbrivate, dot com in (#2475) 2024-01-16 14:38:05 +00:00
errorReporting.ts unbrivate, dot com in (#2475) 2024-01-16 14:38:05 +00:00
qrcode.ts unbrivate, dot com in (#2475) 2024-01-16 14:38:05 +00:00
scratch-persistence-key.ts Protect local storage calls (#3043) 2024-03-04 13:37:09 +00:00
sharing.ts tldraw_final_v6_final(old version).docx.pdf (#2998) 2024-02-29 16:06:19 +00:00
shouldClearDocument.tsx tldraw_final_v6_final(old version).docx.pdf (#2998) 2024-02-29 16:06:19 +00:00
shouldLeaveSharedProject.tsx tldraw_final_v6_final(old version).docx.pdf (#2998) 2024-02-29 16:06:19 +00:00
shouldOverrideDocument.tsx tldraw_final_v6_final(old version).docx.pdf (#2998) 2024-02-29 16:06:19 +00:00
trackAnalyticsEvent.ts unbrivate, dot com in (#2475) 2024-01-16 14:38:05 +00:00
url.ts Composable custom UI (#2796) 2024-02-15 12:10:09 +00:00
useCursorChat.ts tldraw_final_v6_final(old version).docx.pdf (#2998) 2024-02-29 16:06:19 +00:00
useFileSystem.tsx tldraw_final_v6_final(old version).docx.pdf (#2998) 2024-02-29 16:06:19 +00:00
useHandleUiEvent.tsx unbrivate, dot com in (#2475) 2024-01-16 14:38:05 +00:00
userPreferences.ts Protect local storage calls (#3043) 2024-03-04 13:37:09 +00:00