main.js(isDisplayed): coerce truthy values to boolean
This commit is contained in:
parent
6622111906
commit
f5efd2aba3
1 changed files with 2 additions and 3 deletions
|
@ -302,11 +302,10 @@ function preLoadCss(cssUrl) {
|
|||
window.searchState.timeout = null;
|
||||
}
|
||||
},
|
||||
// @ts-expect-error
|
||||
isDisplayed: () => {
|
||||
const outputElement = window.searchState.outputElement();
|
||||
return outputElement &&
|
||||
outputElement.parentElement &&
|
||||
return !!outputElement &&
|
||||
!!outputElement.parentElement &&
|
||||
outputElement.parentElement.id === ALTERNATIVE_DISPLAY_ID;
|
||||
},
|
||||
// Sets the focus on the search bar at the top of the page
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue