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 360c7a8 commit 7041f11Copy full SHA for 7041f11
sphinx/themes/basic/static/searchtools.js
@@ -164,7 +164,7 @@ const Search = {
164
const htmlElement = new DOMParser().parseFromString(htmlString, 'text/html');
165
htmlElement.querySelectorAll(".headerlink").forEach((el) => { el.remove() });
166
const docContent = htmlElement.querySelector('[role="main"]');
167
- if (docContent !== undefined) return docContent.textContent;
+ if (docContent) return docContent.textContent;
168
console.warn(
169
"Content block not found. Sphinx search tries to obtain it via '[role=main]'. Could you check your theme or template."
170
);
0 commit comments