pass url and title to share call. update bundle.js in apple apps

This commit is contained in:
Satindar Dhillon
2022-05-16 12:20:05 -07:00
parent 51117290d7
commit 4b3533c17d
2 changed files with 7 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -93,7 +93,12 @@ export function ArticleContainer(props: ArticleContainerProps): JSX.Element {
}
const share = () => {
navigator.share()
if (navigator.share) {
navigator.share({
title: props.article.title,
url: props.article.originalArticleUrl,
})
}
}
document.addEventListener('increaseFontSize', increaseFontSize)