File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
src/Elastic.Documentation.Site/Assets Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -15,22 +15,21 @@ import { $, $$ } from 'select-dom'
1515import { UAParser } from 'ua-parser-js'
1616
1717const { getOS } = new UAParser ( )
18- const isLazyLoadNavigationEnabled = $ ( 'meta[property="docs:feature:lazy-load-navigation"]' ) ?. content === 'true' ;
18+ const isLazyLoadNavigationEnabled =
19+ $ ( 'meta[property="docs:feature:lazy-load-navigation"]' ) ?. content === 'true'
1920
2021document . addEventListener ( 'htmx:load' , function ( event ) {
2122 initTocNav ( )
2223 initHighlight ( )
2324 initCopyButton ( )
2425 initTabs ( )
25-
26+
2627 // We do this so that the navigation is not initialized twice
2728 if ( isLazyLoadNavigationEnabled ) {
28- if ( event . detail . elt . id === 'nav-tree' )
29- {
29+ if ( event . detail . elt . id === 'nav-tree' ) {
3030 initNav ( )
3131 }
32- } else
33- {
32+ } else {
3433 initNav ( )
3534 }
3635 initSmoothScroll ( )
You can’t perform that action at this time.
0 commit comments