Skip to content

Commit

Permalink
Fix no-js
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacMarovitz committed Apr 3, 2024
1 parent 56a4473 commit 86eae73
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions theme/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@
} catch (e) { }
</script>

<!-- Set the theme before any content is loaded, prevents flash -->
<script>
var body = document.querySelector('body');
body.classList.remove('no-js')
body.classList.add('js');
</script>

<input type="checkbox" id="sidebar-toggle-anchor" class="hidden">

<!-- Hide / unhide sidebar before it is displayed -->
Expand Down

0 comments on commit 86eae73

Please sign in to comment.