Skip to content

Commit

Permalink
reverted the condition
Browse files Browse the repository at this point in the history
  • Loading branch information
wz914876 committed Jan 17, 2024
1 parent acf93a2 commit a7aaad0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/product-citations/product-citations.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { loadScript } from '../../scripts/lib-franklin.js';

export default async function decorate(block) {
const citationsLinkEl = block.querySelector('a');
if (citationsLinkEl && window.location.toString().includes('#citations')) {
if (citationsLinkEl) {
const id = citationsLinkEl.getAttribute('title');
const data = citationsLinkEl.getAttribute('href');
block.innerHTML = '';
Expand Down

0 comments on commit a7aaad0

Please sign in to comment.