Skip to content

Commit

Permalink
nit: combine two if statement as OR.
Browse files Browse the repository at this point in the history
  • Loading branch information
seanchoi-dev committed Sep 19, 2024
1 parent a89e057 commit 52000b3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libs/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1147,8 +1147,7 @@ function decorateMeta() {
const { origin } = window.location;
const contents = document.head.querySelectorAll(`[content*=".${SLD}."]`);
contents.forEach((meta) => {
if (meta.getAttribute('property') === 'hlx:proxyUrl') return;
if (meta.getAttribute('name').endsWith('schedule')) return;
if (meta.getAttribute('property') === 'hlx:proxyUrl' || meta.getAttribute('name').endsWith('schedule')) return;
try {
const url = new URL(meta.content);
const localizedLink = localizeLink(`${origin}${url.pathname}`);
Expand Down

0 comments on commit 52000b3

Please sign in to comment.