From bccb4b58dafbdc1ce86b2bf0db184014bc64f9c2 Mon Sep 17 00:00:00 2001 From: Gary Cheung Date: Wed, 30 Oct 2024 06:45:34 -0700 Subject: [PATCH] rename --- src/js/09-external-links.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/09-external-links.js b/src/js/09-external-links.js index 4c010a37..c2ed9f3e 100644 --- a/src/js/09-external-links.js +++ b/src/js/09-external-links.js @@ -25,9 +25,9 @@ } const isExternalLink = (url) => - !url.startsWith(window.location.origin) && url.startsWith('http') && !isPreviewToProd(window.location.origin, url) + !url.startsWith(window.location.origin) && url.startsWith('http') && !isLocalToProd(window.location.origin, url) - const isPreviewToProd = (origin, url) => + const isLocalToProd = (origin, url) => (origin.startsWith('http://localhost') || origin.startsWith('file://')) && url.includes('docs.mulesoft.com') const opensInNewWindow = (linkTarget) => linkTarget === '_blank'