Skip to content

Commit

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

0 comments on commit bccb4b5

Please sign in to comment.