Skip to content

Commit d030087

Browse files
fix: don't try to access local storage since it breaks in safari
1 parent 32a9989 commit d030087

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/editor/src/lib/config/TLUserPreferences.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ function loadUserPreferences(): TLUserPreferences {
190190
const globalUserPreferences = atom<TLUserPreferences>('globalUserData', loadUserPreferences())
191191

192192
function storeUserPreferences() {
193-
if (typeof window !== 'undefined' && window.localStorage) {
193+
if (typeof window !== 'undefined') {
194194
try {
195195
window.localStorage.setItem(
196196
USER_DATA_KEY,

0 commit comments

Comments
 (0)