check localStorage exists (#7)
This commit is contained in:
parent
6101f18c7a
commit
2e17ab122a
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue