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 d89457d commit 4fc09a7Copy full SHA for 4fc09a7
src/librustdoc/html/static/js/main.js
@@ -305,11 +305,10 @@ function preLoadCss(cssUrl) {
305
window.searchState.timeout = null;
306
}
307
},
308
- // @ts-expect-error
309
isDisplayed: () => {
310
const outputElement = window.searchState.outputElement();
311
- return outputElement &&
312
- outputElement.parentElement &&
+ return !!outputElement &&
+ !!outputElement.parentElement &&
313
outputElement.parentElement.id === ALTERNATIVE_DISPLAY_ID;
314
315
// Sets the focus on the search bar at the top of the page
0 commit comments