File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments