Skip to content

Commit 2bef930

Browse files
committed
[Doc] Fix tips loading in production
1 parent 2084367 commit 2bef930

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

docs/js/ra-navigation.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,6 @@ document.addEventListener('DOMContentLoaded', () => {
153153
'beginner-mode-trigger'
154154
);
155155

156-
if (window.location.pathname === '/documentation.html') {
157-
}
158-
159156
if (beginnerModeTrigger) {
160157
beginnerModeTrigger.addEventListener('click', () => {
161158
beginnerMode = !beginnerMode;
@@ -230,7 +227,7 @@ window.addEventListener('popstate', () => {
230227
return;
231228
}
232229

233-
if (window.location.pathname === '/documentation.html') {
230+
if (window.location.pathname.includes('/documentation.html')) {
234231
fetch(window.location.pathname)
235232
.then(res => res.text())
236233
.then(replaceContent)
@@ -268,7 +265,7 @@ window.addEventListener('DOMContentLoaded', () => {
268265
navigationFitScroll();
269266
loadNewsletterScript();
270267

271-
if (window.location.pathname === '/documentation.html') {
268+
if (window.location.pathname.includes('/documentation.html')) {
272269
import('./ra-doc-exec.js').then(docExecModule => {
273270
document.querySelector('.DocSearch-content').innerHTML = '';
274271
toggleDockBlocks(true);

0 commit comments

Comments
 (0)