PATH:
home
/
bkunreyz
/
ezdatarecovery.net
/
wp-content
/
plugins
/
extendify
/
src
/
Agent
/
lib
import { external, Icon } from '@wordpress/icons'; const homeUrl = window.extSharedData?.homeUrl; const isExternalUrl = (url) => { try { const homeUrlObject = new URL(homeUrl); const urlObject = new URL(url); return homeUrlObject.hostname !== urlObject.hostname; } catch { return false; } }; export const customComponents = { a: ({ href, children }) => { const isExternal = isExternalUrl(href); return ( <a href={href} {...(isExternal && { target: '_blank', rel: 'noopener noreferrer', })} > {children} {isExternal && ( <Icon icon={external} size={18} className="ml-0.5 inline" /> )} </a> ); }, };
[-] media-views.js
[edit]
[-] confetti.js
[edit]
[-] media.js
[edit]
[-] page-tours.js
[edit]
[-] svg-helpers.js
[edit]
[-] editor.js
[edit]
[-] redirects.js
[edit]
[-] svg-blocks-scanner.js
[edit]
[-] variant-classes.js
[edit]
[+]
..
[+]
__tests__
[-] markdown.js
[edit]
[-] wp.js
[edit]
[-] blocks.js
[edit]
[-] util.js
[edit]
[-] tour-helpers.js
[edit]