summaryrefslogtreecommitdiff
path: root/examples/docs/src/components/LeftSidebar/LeftSidebar.astro
diff options
context:
space:
mode:
authorGravatar Juan Martín Seery <me@juanm04.com> 2022-04-03 16:02:57 -0300
committerGravatar GitHub <noreply@github.com> 2022-04-03 14:02:57 -0500
commitdc6e89f0a32952568def085a7c6eb79fae697303 (patch)
tree0312982227102e618f6f2f239f4bf25e32625f4c /examples/docs/src/components/LeftSidebar/LeftSidebar.astro
parentdff89a0fa3d51d1473e8a19b000ba8a76261d060 (diff)
downloadastro-dc6e89f0a32952568def085a7c6eb79fae697303.tar.gz
astro-dc6e89f0a32952568def085a7c6eb79fae697303.tar.zst
astro-dc6e89f0a32952568def085a7c6eb79fae697303.zip
chore: updated examples to v0.26.0 (#2977)
* New script behavior * Astro.request * Reverted `deno` to `node` * Updated subpath
Diffstat (limited to 'examples/docs/src/components/LeftSidebar/LeftSidebar.astro')
-rw-r--r--examples/docs/src/components/LeftSidebar/LeftSidebar.astro2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/docs/src/components/LeftSidebar/LeftSidebar.astro b/examples/docs/src/components/LeftSidebar/LeftSidebar.astro
index 99a03213d..107423385 100644
--- a/examples/docs/src/components/LeftSidebar/LeftSidebar.astro
+++ b/examples/docs/src/components/LeftSidebar/LeftSidebar.astro
@@ -43,7 +43,7 @@ const sidebarSections = SIDEBAR[langCode].reduce((col, item, i) => {
</ul>
</nav>
-<script>
+<script is:inline>
window.addEventListener('DOMContentLoaded', (event) => {
var target = document.querySelector('[aria-current="page"]');
if (target && target.offsetTop > window.innerHeight - 100) {