From 004fc18abe22bf416130fc36934e1dec9ebdd5ed Mon Sep 17 00:00:00 2001 From: maxkadushkin Date: Thu, 19 Jun 2025 18:21:56 +0300 Subject: [PATCH] [api] fix localStorage availability checking --- apps/api/documents/api.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/api/documents/api.js b/apps/api/documents/api.js index 3af1dd39ab..8c2bedcf91 100644 --- a/apps/api/documents/api.js +++ b/apps/api/documents/api.js @@ -1070,8 +1070,7 @@ function isLocalStorageAvailable() { try { - const storage = window['localStorage']; - return true; + return !!window['localStorage']; } catch(e) { return false;