1
Fork 0

Fix storage usage when disabled

This commit is contained in:
Guillaume Gomez 2019-06-02 16:57:26 +02:00
parent 8b36867093
commit 4eb19d19a5

View file

@ -64,13 +64,11 @@ function usableLocalStorage() {
// preferences deny access to localStorage, e.g., to prevent storage of
// "cookies" (or cookie-likes, as is the case here).
try {
window.localStorage;
return window.localStorage !== null && window.localStorage !== undefined;
} catch(err) {
// Storage is supported, but browser preferences deny access to it.
return false;
}
return true;
}
function updateLocalStorage(name, value) {