Skip to content

Commit

Permalink
add docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
Silas Gyger committed Jun 16, 2023
1 parent 3366cf3 commit 216fd10
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions static/custom.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// hide nav if ?hide-nav=true
window.onload = () => {
if ((new URL(window.location.href)).searchParams.get("hide-nav") === "true") {
document.querySelector(".wy-nav-side").setAttribute("style", "display: none");
Expand Down

0 comments on commit 216fd10

Please sign in to comment.