this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix some links not opening browser's context menu

+2 -2
+2 -2
src/components/status.jsx
··· 1085 1085 const { clientX, clientY } = e.touches?.[0] || e; 1086 1086 // link detection copied from onContextMenu because here it works 1087 1087 const link = e.target.closest('a'); 1088 - if (link && /^https?:\/\//.test(link.getAttribute('href'))) return; 1088 + if (link && statusRef.current.contains(link)) return; 1089 1089 e.preventDefault(); 1090 1090 setContextMenuProps({ 1091 1091 anchorPoint: { ··· 1331 1331 if (e.metaKey) return; 1332 1332 // console.log('context menu', e); 1333 1333 const link = e.target.closest('a'); 1334 - if (link && /^https?:\/\//.test(link.getAttribute('href'))) return; 1334 + if (link && statusRef.current.contains(link)) return; 1335 1335 1336 1336 // If there's selected text, don't show custom context menu 1337 1337 const selection = window.getSelection?.();