()
| 966 | const alwaysLabel = 'Always open links in your browser'; |
| 967 | |
| 968 | const onShare = async () => { |
| 969 | if (!article.url) { |
| 970 | return; |
| 971 | } |
| 972 | if (!shouldUseNativeShare()) { |
| 973 | copyLink({ link: article.url }); |
| 974 | return; |
| 975 | } |
| 976 | try { |
| 977 | await navigator.share({ title: article.title, url: article.url }); |
| 978 | } catch { |
| 979 | // The sheet was dismissed. |
| 980 | } |
| 981 | }; |
| 982 | |
| 983 | // This page goes to the system browser now and every link after it: the |
| 984 | // drawer is gone on this device until the setting is turned back. |
no test coverage detected