Skip to content

Commit

Permalink
remove duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
marcustyphoon committed Feb 1, 2025
1 parent f52112d commit 2bf1fa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/override_font_weight.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const processLinkElements = async () => {
cache[url] ??= getSelectorsFromUrl(url);
});

const selectors = await Promise.all(Object.values(cache)).then(results => results.flat());
const selectors = await Promise.all(Object.values(cache)).then(results => [...new Set(results.flat())]);
fontWeightOverride.textContent = `
${selectors.join(', ')} {
font-weight: normal;
Expand Down

0 comments on commit 2bf1fa7

Please sign in to comment.