From 08c074e44bd7ccbad89bc3c0d5b299cf2ba88dea Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Thu, 8 Jun 2023 15:24:56 -0400 Subject: [PATCH] prettier --- docs/assets/scripts/docs.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/assets/scripts/docs.js b/docs/assets/scripts/docs.js index a9d4d077..c554248d 100644 --- a/docs/assets/scripts/docs.js +++ b/docs/assets/scripts/docs.js @@ -211,7 +211,7 @@ } function updateActiveLinks() { - const links = getLinks() + const links = getLinks(); // Find the first visible target and activate the respective link links.find(link => { const target = linkTargets.get(link); @@ -226,7 +226,7 @@ } // Observe link targets - function observeLinks () { + function observeLinks() { getLinks().forEach(link => { const hash = link.hash.slice(1); const target = hash ? document.querySelector(`.content__body #${hash}`) : null; @@ -238,8 +238,8 @@ }); } - observeLinks() + observeLinks(); - document.addEventListener("turbo:load", updateActiveLinks) - document.addEventListener("turbo:load", observeLinks) + document.addEventListener('turbo:load', updateActiveLinks); + document.addEventListener('turbo:load', observeLinks); })();