check localStorage exists (#7)

This commit is contained in:
mloginov 2023-08-23 23:12:26 +01:00 committed by GitHub
parent 6101f18c7a
commit 2e17ab122a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ function localStorageGet(name) {
try {
r = localStorage.getItem(name);
} catch (e) {
if (e instanceof DOMException) {
if (e instanceof DOMException || !localStorage) {
logOnce(cookiesMsg);
logOnce("'localStorage.getItem(" + name + ")' failed: " + e,
"debug");