We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b36867 commit 4eb19d1Copy full SHA for 4eb19d1
src/librustdoc/html/static/storage.js
@@ -64,13 +64,11 @@ function usableLocalStorage() {
64
// preferences deny access to localStorage, e.g., to prevent storage of
65
// "cookies" (or cookie-likes, as is the case here).
66
try {
67
- window.localStorage;
+ return window.localStorage !== null && window.localStorage !== undefined;
68
} catch(err) {
69
// Storage is supported, but browser preferences deny access to it.
70
return false;
71
}
72
-
73
- return true;
74
75
76
function updateLocalStorage(name, value) {
0 commit comments