Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
cheungaryk committed Oct 30, 2024
1 parent 3b6f2dd commit 8e27343
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/09-external-links.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down

0 comments on commit 8e27343

Please sign in to comment.