Skip to content

Commit

Permalink
Merge pull request #827 from common-group/fix/remove_compartilhamento…
Browse files Browse the repository at this point in the history
…_messenger_mobile

🐞 Esconde botão de compartilhamento via Messenger no mobile
  • Loading branch information
devton authored Apr 9, 2021
2 parents 1dfad6f + 888069f commit 8eccc66
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const projectShareBox = {
};
},
view: function({state, attrs}) {
const showMessengerButton = false;
const utm = attrs.utm || 'ctrse_project_share';
const ref = attrs.ref || 'ctrse_project_share';
const embedUrl = `https://www.catarse.me/pt/projects/${attrs.project().project_id}/embed`;
Expand Down Expand Up @@ -45,7 +46,7 @@ const projectShareBox = {
mobile: true,
url: facebookUrl
}) : '',
attrs.project().permalink ? m(facebookButton, {
attrs.project().permalink && showMessengerButton ? m(facebookButton, {
mobile: true,
messenger: true,
url: facebookMessengerUrl
Expand Down

0 comments on commit 8eccc66

Please sign in to comment.