diff --git a/web/app/assets/javascripts/invitationDialog.js b/web/app/assets/javascripts/invitationDialog.js index 4fe5bbf19..419d4d493 100644 --- a/web/app/assets/javascripts/invitationDialog.js +++ b/web/app/assets/javascripts/invitationDialog.js @@ -179,6 +179,7 @@ var obj = { method: 'feed', link: signupUrl, + // link: signupUrl.replace(/localhost:3000/,'www.jamkazam.com'), picture: 'http://jamkazam.com/assets/logo.png', name: 'Join me on JamKazam', caption: 'Play live music in real-time sessions with others over the Internet, as if in the same room.', @@ -188,7 +189,7 @@ console.log("facebook feed options:", obj); function fbFeedDialogCallback(response) { //console.log("feedback dialog closed: " + response['post_id']) - if (response['post_id']) { + if (response && response['post_id']) { context.JK.GA.trackServiceInvitations(context.JK.GA.InvitationTypes.facebook, 1); } }