debug: add logging to handleExternalLinkClick
This commit is contained in:
@@ -54,8 +54,11 @@ const EMOJI_REG_G = new RegExp(`${URL_NEG_LB}(${EMOJI_PATTERN})`, 'g');
|
||||
*/
|
||||
const handleExternalLinkClick = (e: MouseEvent<HTMLAnchorElement>) => {
|
||||
const href = e.currentTarget.href;
|
||||
console.log('[handleExternalLinkClick] clicked link:', href);
|
||||
if (href && (href.startsWith('http://') || href.startsWith('https://'))) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
console.log('[handleExternalLinkClick] calling openExternalUrl');
|
||||
openExternalUrl(href);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user