From 070425b0f445e240469b4ed56910c753285fb6f4 Mon Sep 17 00:00:00 2001 From: Tony Lea Date: Thu, 13 Jun 2024 17:36:35 -0400 Subject: [PATCH] Adding producthunt link on page --- assets/js/main.js | 4 +++- includes/docs-sidebar.html | 6 +++--- includes/header.html | 2 ++ includes/home/browser-tab-pages.html | 4 ++-- includes/home/customize.html | 2 +- includes/home/hero.html | 12 ++++++++---- 6 files changed, 19 insertions(+), 11 deletions(-) diff --git a/assets/js/main.js b/assets/js/main.js index eaa6188..c00efb6 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -464,7 +464,9 @@ function setAllOthersToInactive(link){ const tocLinks = document.querySelectorAll('.toc li'); for(let i = 0; i < tocLinks.length; i++){ if(tocLinks[i] != link){ - tocLinks[i].classList.remove('active'); + if(tocLinks[i].classList){ + tocLinks[i].classList.remove('active'); + } } } } diff --git a/includes/docs-sidebar.html b/includes/docs-sidebar.html index e5e801a..a88dec5 100644 --- a/includes/docs-sidebar.html +++ b/includes/docs-sidebar.html @@ -2,14 +2,14 @@
Get Started