From 52000b33645f291600cfd2531a0fce3fb9a0552c Mon Sep 17 00:00:00 2001 From: Sean Choi Date: Thu, 19 Sep 2024 17:28:52 -0600 Subject: [PATCH] nit: combine two if statement as OR. --- libs/utils/utils.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libs/utils/utils.js b/libs/utils/utils.js index 27c251095c..c43bac0212 100644 --- a/libs/utils/utils.js +++ b/libs/utils/utils.js @@ -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}`);