Skip to content

Commit 39bce09

Browse files
authored
Merge pull request #13646 from guardian/arelra-patch-1
Add `navigator.canShare` check in `ShareButton.importable.tsx`
2 parents 500e9f5 + c096da6 commit 39bce09

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dotcom-rendering/src/components/ShareButton.importable.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ export const ShareButton = ({
210210
if (
211211
!isLiveBlogBlockDesktop &&
212212
'share' in navigator &&
213+
'canShare' in navigator &&
213214
navigator.canShare(shareData)
214215
) {
215216
setButtonKind('native');

0 commit comments

Comments
 (0)