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 || {};
434
434
435
435
function showSearch ( yes ) {
436
436
if ( yes ) {
437
- loadSearchScript ( path_to_root + '{{ resource "searchindex.js" }}' , 'search-index' ) ;
437
+ loadSearchScript ( window . path_to_searchindex_js , 'search-index' ) ;
438
438
search_wrap . classList . remove ( 'hidden' ) ;
439
439
searchicon . setAttribute ( 'aria-expanded' , 'true' ) ;
440
440
} else {
Original file line number Diff line number Diff line change 58
58
const path_to_root = " {{ path_to_root }}" ;
59
59
const default_light_theme = " {{ default_theme }}" ;
60
60
const default_dark_theme = " {{ preferred_dark_theme }}" ;
61
+ {{#if search_js}}
62
+ window .path_to_searchindex_js = " {{ resource " searchindex .js " }}" ;
63
+ {{/ if }}
61
64
</script >
62
65
<!-- Start loading toc.js asap -->
63
66
<script src =" {{ resource " toc.js" }} " ></script >
You can’t perform that action at this time.
0 commit comments