Skip to content

Commit 7542129

Browse files
committed
Run prettier
1 parent 10de2f5 commit 7542129

File tree

1 file changed

+5
-6
lines changed
  • src/Elastic.Documentation.Site/Assets

1 file changed

+5
-6
lines changed

src/Elastic.Documentation.Site/Assets/main.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,21 @@ import { $, $$ } from 'select-dom'
1515
import { UAParser } from 'ua-parser-js'
1616

1717
const { 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

2021
document.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()

0 commit comments

Comments
 (0)