Skip to content

Commit

Permalink
only call faqjson if it is a blog page
Browse files Browse the repository at this point in the history
  • Loading branch information
bdeffleyfamous committed Jun 13, 2024
1 parent c4cd0bc commit f1a2624
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cigaradvisor/scripts/linking-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ export default function addLinkingData() {
} else if (window.location.pathname === getCategory(window.location.pathname)) {
addOrUpdateCollection();
window.addEventListener('hashchange', addOrUpdateCollection);
} else if (getCategory(window.location.pathname)) {
addFAQLdJson();
}
addFAQLdJson();
}

0 comments on commit f1a2624

Please sign in to comment.