From 8e273438eb29b7802cd5fa486b6bd631718f50e4 Mon Sep 17 00:00:00 2001 From: Gary Cheung Date: Wed, 30 Oct 2024 06:38:59 -0700 Subject: [PATCH] format --- src/js/09-external-links.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/09-external-links.js b/src/js/09-external-links.js index 9eeade52b..4c010a37b 100644 --- a/src/js/09-external-links.js +++ b/src/js/09-external-links.js @@ -27,7 +27,8 @@ const isExternalLink = (url) => !url.startsWith(window.location.origin) && url.startsWith('http') && !isPreviewToProd(window.location.origin, url) - const isPreviewToProd = (origin, url) => (origin.startsWith('http://localhost') || origin.startsWith('file://')) && url.includes('docs.mulesoft.com') + const isPreviewToProd = (origin, url) => + (origin.startsWith('http://localhost') || origin.startsWith('file://')) && url.includes('docs.mulesoft.com') const opensInNewWindow = (linkTarget) => linkTarget === '_blank'