Skip to content

Commit

Permalink
fix(#11): desktop safari
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker committed Jan 29, 2019
1 parent 8d08e2c commit 0b8d4fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/web-social-share/web-social-share-whatsapp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export class WebSocialShareWhatsapp {
static share(attrs: WebSocialShareWhatsappAttributes) {
const isMobile: boolean = WebSocialShareUtils.isMobile();

let urlString = 'https://api.whatsapp.com/send?';
let urlString = isMobile ? 'https://api.whatsapp.com/send?' : 'https://web.whatsapp.com/send?';

if (attrs.socialShareText) {
urlString += 'text=' + encodeURIComponent(attrs.socialShareText);
Expand Down

0 comments on commit 0b8d4fd

Please sign in to comment.