We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6b257d commit cfe006bCopy full SHA for cfe006b
1 file changed
static/shared/js/documentation.js
@@ -114,11 +114,13 @@ $(function() {
114
115
// Load the JSON containing all pages
116
// Has it been loaded before (and stored with localstorage)?
117
- searchIndex = JSON.parse(localStorage['searchIndex']);
118
- if (!searchIndex) {
119
- loadSearchIndex();
120
- } else if (localStorageHasExpired()) {
121
+ if (localStorage['searchIndex']) {
+ searchIndex = JSON.parse(localStorage['searchIndex']);
+
+ if (localStorageHasExpired())
+ loadSearchIndex();
122
+ } else {
123
124
}
125
126
function loadSearchIndex() {
0 commit comments