[api] fix localStorage availability checking

This commit is contained in:
maxkadushkin
2025-06-19 18:21:56 +03:00
parent 6acf9cfa10
commit 004fc18abe

View File

@ -1070,8 +1070,7 @@
function isLocalStorageAvailable() {
try {
const storage = window['localStorage'];
return true;
return !!window['localStorage'];
}
catch(e) {
return false;