File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -434,7 +434,7 @@ window.search = window.search || {};
434434
435435 function showSearch ( yes ) {
436436 if ( yes ) {
437- loadSearchScript ( path_to_root + '{{ resource "searchindex.js" }}' , 'search-index' ) ;
437+ loadSearchScript ( window . path_to_searchindex_js , 'search-index' ) ;
438438 search_wrap . classList . remove ( 'hidden' ) ;
439439 searchicon . setAttribute ( 'aria-expanded' , 'true' ) ;
440440 } else {
Original file line number Diff line number Diff line change 5858 const path_to_root = " {{ path_to_root }}" ;
5959 const default_light_theme = " {{ default_theme }}" ;
6060 const default_dark_theme = " {{ preferred_dark_theme }}" ;
61+ {{#if search_js}}
62+ window .path_to_searchindex_js = " {{ resource " searchindex .js " }}" ;
63+ {{/ if }}
6164 </script >
6265 <!-- Start loading toc.js asap -->
6366 <script src =" {{ resource " toc.js" }} " ></script >
You can’t perform that action at this time.
0 commit comments