[Docs] A more robust interceptor for the grid rendering.

This commit is contained in:
Fabio Manganiello 2024-05-26 03:46:25 +02:00
parent d6d9d7a8e7
commit 983bcc240a
Signed by untrusted user: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -152,7 +152,7 @@ const generateComponentsGrid = () => {
return
}
if (window.location.pathname.endsWith('/index.html')) {
if (window.location.pathname === '/' || window.location.pathname.endsWith('/index.html')) {
if (tocWrappers.length < 2) {
return
}