mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-23 16:08:12 +08:00
[api] fix localStorage availability checking
This commit is contained in:
@ -1070,8 +1070,7 @@
|
||||
|
||||
function isLocalStorageAvailable() {
|
||||
try {
|
||||
const storage = window['localStorage'];
|
||||
return true;
|
||||
return !!window['localStorage'];
|
||||
}
|
||||
catch(e) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user