Skip to content

Commit 20917e6

Browse files
fix: navigation on mobile v9
1 parent c0634e9 commit 20917e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom-implementation/src/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ const render = async () => {
1717
*/
1818

1919
const data = await getPageData()
20-
const theme = document.getElementsByTagName('html')[0].getAttribute('class')
2120
const sidenav = document.querySelector('button.fern-search-bar')
2221
?.parentElement as HTMLElement
22+
const theme = document.getElementsByTagName('html')[0].getAttribute('class')
2323

2424
if (!document.getElementById('theme-switch')) {
2525
const wrapper = document.createElement('div')

0 commit comments

Comments
 (0)